about summary refs log tree commit diff
path: root/tests/ui/reachable/expr_andand.rs
blob: 40a8c72e5224938436721f9944bf82d0f24444ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ build-pass (FIXME(62277): could be check-pass?)

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

fn foo() {
    // No error here.
    let x = false && (return);
    println!("I am not dead.");
}

fn main() { }