summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/dead-code/closure-bang.rs
blob: bca131a15d3254cf49578358f441f71718fb4a95 (plain)
1
2
3
4
5
6
7
#![deny(unreachable_code)]

fn main() {
    let x = || -> ! { panic!() };
    x();
    println!("Foo bar"); //~ ERROR: unreachable statement
}