aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/use-uninit.rs
blob: 03dafdcc003840e70e2cb2b534627e4a2d21e76d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// error-pattern:Unsatisfied precondition

fn foo(int x) {
  log x;
}

fn main() {
  let int x;
  foo(x);
}