summaryrefslogtreecommitdiffstats
path: root/tests/ui/reachable/expr_oror.rs
blob: e95062de4d732f05708edae93a8e30222bb28ea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// build-pass (FIXME(62277): could be check-pass?)

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

fn foo() {
    let x = false || (return);
    println!("I am not dead.");
}

fn main() { }