2015-01-03 10:45:00 -05:00
|
|
|
// ignore-test FIXME(#20574)
|
|
|
|
|
2014-08-30 20:37:11 +12:00
|
|
|
#![deny(unreachable_code)]
|
|
|
|
|
|
|
|
fn main() {
|
2015-02-01 12:44:15 -05:00
|
|
|
let x = || panic!();
|
2014-08-30 20:37:11 +12:00
|
|
|
x();
|
2015-06-12 14:15:57 -04:00
|
|
|
println!("Foo bar"); //~ ERROR: unreachable statement
|
2014-08-30 20:37:11 +12:00
|
|
|
}
|