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

11 lines
123 B
Rust
Raw Normal View History

2011-01-30 17:38:46 -05:00
// error-pattern: Non-call expression in tail call
fn f() -> int {
auto x = 1;
be x;
}
fn main() {
auto y = f();
}