rust/src/test/compile-fail/use-uninit.rs

10 lines
107 B
Rust

// error-pattern:Unsatisfied precondition
fn foo(int x) {
log x;
}
fn main() {
let int x;
foo(x);
}