about summary refs log tree commit diff
path: root/tests/ui/reachable/diverging-expressions-unreachable-code.rs
blob: bb56987775ff2b5196287a1c3265a88af4e42263 (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)]

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() {}