aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/return-uninit.rs
blob: 3711716927a39b6dc5ebec4b71daa455f3acf804 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// error-pattern: precondition constraint

fn f() -> int {
   let int x;
   ret x;
}

fn main() {
   f();
}