1 2 3 4 5 6 7 8 9 10 11
enum S { A, } fn bug(l: S) { match l { S::B {} => {}, //~ ERROR no variant named `B` found for enum `S` } } fn main () {}