rust/src/test/run-pass/unreachable-code-1.rs
2012-08-01 19:16:06 -07:00

14 lines
189 B
Rust

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