Closed
Description
enum Foo {
Bar,
Baz
}
impl Foo {
fn foo(&self) {
match self {
&Bar => println!("bar"),
&Baz => println!("baz"),
}
}
}
It reports unreachable pattern:
test.rs:12:9: 12:13 error: unreachable pattern [E0001]
test.rs:12 &Baz => println!("baz"),
^~~~
test.rs:12:9: 12:13 help: pass `--explain E0001` to see a detailed explanation
while actually it should report unknown identifier
Metadata
Metadata
Assignees
Labels
No labels