mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
14 lines
243 B
Rust
14 lines
243 B
Rust
//@ 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() { }
|