blob: 6493565d2164719b9b51cf36c6cf35c469b78b0e [file] [log] [blame]
enum Foo {
Bar(u8)
}
fn main(){
foo(|| {
match Foo::Bar(1) {
Foo::Baz(..) => (),
//~^ ERROR no variant or associated item named `Baz` found for type `Foo`
_ => (),
}
});
}
fn foo<F>(f: F) where F: FnMut() {
f();
}