summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unreachable-code-1.rs
blob: ee44f3999455ee1c4d9637b8cb48bf12f4ade94b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// run-pass

#![allow(unused_must_use)]
#![allow(unreachable_code)]

#![allow(unused_variables)]
#![allow(dead_code)]

fn id(x: bool) -> bool { x }

fn call_id() {
    let c = panic!();
    id(c);
}

fn call_id_3() { id(return) && id(return); }

pub fn main() {
}