rust/src/test/compile-fail/tail-non-call.rs

11 lines
121 B
Rust
Raw Normal View History

2011-07-27 14:48:34 +02:00
// error-pattern: Non-call expression in tail call
fn f() -> int {
let x = 1;
be x;
}
fn main() {
let y = f();
}