Skip to content

Commit 2f526cc

Browse files
committed
we now get an extra unreachable code warning in this test
1 parent 5cd99aa commit 2f526cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/compile-fail/never-assign-dead-code.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
fn main() {
1717
let x: ! = panic!("aah"); //~ ERROR unused
1818
drop(x); //~ ERROR unreachable
19+
//~^ ERROR unreachable
1920
}
2021

0 commit comments

Comments
 (0)