]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-28971.rs
Re-blessed tests.
[rust.git] / src / test / ui / issues / issue-28971.rs
1 // This should not cause an ICE
2
3 enum Foo {
4     Bar(u8)
5 }
6 fn main(){
7     foo(|| {
8         match Foo::Bar(1) {
9             Foo::Baz(..) => (),
10             //~^ ERROR no variant named `Baz` found for type `Foo`
11             _ => (),
12         }
13     });
14 }
15
16 fn foo<F>(f: F) where F: FnMut() {
17     f();
18 }