rust/src/test/compile-fail/tail-non-call.rs
2011-05-14 21:05:22 -04:00

11 lines
123 B
Rust

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