Skip to content

Commit 7d1b19c

Browse files
committed
Diagnostics improvement!
1 parent 8a9414a commit 7d1b19c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/run-pass/ctfe/references.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ fn main() {
2828
_ => panic!("c"),
2929
}
3030

31+
#[allow(unreachable_patterns)]
3132
match &43 {
3233
&42 => panic!(),
33-
BOO => panic!(),
34+
BOO => panic!(), // pattern is unreachable
3435
_ => println!("d"),
3536
}
3637
}

0 commit comments

Comments
 (0)