Closed
Description
enum Foo {
Bar(u8), Baz(u8)
}
fn main() {
match Foo::Bar(1) {
Foo::Quux(..) =>(),
_ => ()
}
}
(playpen)
Currently gives the error message:
<anon>:7:9: 7:22 error: no associated item named `Quux` found for type `Foo` in the current scope
<anon>:7 Foo::Quux(..) =>(),
This should be "no associated item or variant", or perhaps just "no variant" (if we can detect that its in a match statement)