]>
Commit | Line | Data |
---|---|---|
92a42be0 SL |
1 | enum Foo { |
2 | Bar(u8) | |
3 | } | |
4 | fn main(){ | |
5 | foo(|| { | |
6 | match Foo::Bar(1) { | |
ff7c6d11 | 7 | Foo::Baz(..) => (), |
dfeec247 | 8 | //~^ ERROR no variant or associated item named `Baz` found |
92a42be0 SL |
9 | _ => (), |
10 | } | |
11 | }); | |
223e47cc LB |
12 | } |
13 | ||
92a42be0 SL |
14 | fn foo<F>(f: F) where F: FnMut() { |
15 | f(); | |
223e47cc | 16 | } |