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

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

fn main() {
   f();
}