Diagnostics improvement!

This commit is contained in:
Oliver Scherer 2018-12-11 09:05:06 +01:00
parent 8a9414ae19
commit 7d1b19cfe3

View File

@ -28,9 +28,10 @@ fn main() {
_ => panic!("c"),
}
#[allow(unreachable_patterns)]
match &43 {
&42 => panic!(),
BOO => panic!(),
BOO => panic!(), // pattern is unreachable
_ => println!("d"),
}
}