-// This should not cause an ICE
-
enum Foo {
Bar(u8)
}
foo(|| {
match Foo::Bar(1) {
Foo::Baz(..) => (),
- //~^ ERROR no variant named `Baz` found for type `Foo`
+ //~^ ERROR no variant or associated item named `Baz` found for type `Foo`
_ => (),
}
});