rust/src/test/ui/reachable/expr_andand.rs
2018-12-25 21:08:33 -07:00

14 lines
207 B
Rust

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