rust/src/test/compile-fail/liveness-uninit-after-item.rs

7 lines
126 B
Rust
Raw Normal View History

fn main() {
let bar;
fn baz(x: int) { }
bind baz(bar); //! ERROR use of possibly uninitialized variable: `bar`
}