2018-04-02 06:20:06 -05:00
|
|
|
// compile-pass
|
2017-12-10 13:14:01 -06:00
|
|
|
|
2017-03-21 08:41:41 -05:00
|
|
|
#![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() { }
|