aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/use-uninit.rs
blob: 4f27b5bc307956346d5f928f83b4adbc36a2814d (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);
}