summary refs log tree commit diff
path: root/src/test/compile-fail/tail-non-call.rs
blob: f2622bc4dfa18aff25782386f2d2a9a77f68b18e (plain)
1
2
3
4
5
6
7
8
9
10
// error-pattern:non-call expression in tail call

fn f() -> int {
  let x = 1;
  be x;
}

fn main() {
  let y = f();
}