rust/tests/ui/lint/dead-code/closure-bang.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
164 B
Rust
Raw Normal View History

2015-01-03 09:45:00 -06:00
// ignore-test FIXME(#20574)
#![deny(unreachable_code)]
fn main() {
let x = || panic!();
x();
println!("Foo bar"); //~ ERROR: unreachable statement
}