Diagnostics improvement!
This commit is contained in:
parent
8a9414ae19
commit
7d1b19cfe3
1 changed files with 2 additions and 1 deletions
|
@ -28,9 +28,10 @@ fn main() {
|
|||
_ => panic!("c"),
|
||||
}
|
||||
|
||||
#[allow(unreachable_patterns)]
|
||||
match &43 {
|
||||
&42 => panic!(),
|
||||
BOO => panic!(),
|
||||
BOO => panic!(), // pattern is unreachable
|
||||
_ => println!("d"),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue