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

5 lines
103 B
Rust
Raw Normal View History

// error-pattern:Unsatisfied precondition
2011-07-27 07:19:39 -05:00
fn foo(x: int) { log x; }
2011-07-27 07:19:39 -05:00
fn main() { let x: int; foo(x); }