rust/src/test/run-pass/unreachable-code-1.rs

13 lines
177 B
Rust

fn id(x: bool) -> bool { x }
fn call_id() {
let c = move fail;
id(c); //~ WARNING unreachable statement
}
fn call_id_3() { id(return) && id(return); }
fn main() {
}