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