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

11 lines
120 B
Rust
Raw Normal View History

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