rust/src/test/compile-fail/tail-non-call.rs
2011-07-27 15:54:33 +02:00

11 lines
121 B
Rust

// error-pattern: Non-call expression in tail call
fn f() -> int {
let x = 1;
be x;
}
fn main() {
let y = f();
}