Skip to content

Commit

Permalink
we now get an extra unreachable code warning in this test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis authored and michaelwoerister committed Apr 7, 2017
1 parent c51bdd0 commit e36b8ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/compile-fail/never-assign-dead-code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
fn main() {
let x: ! = panic!("aah"); //~ ERROR unused
drop(x); //~ ERROR unreachable
//~^ ERROR unreachable
}

0 comments on commit e36b8ac

Please sign in to comment.