rust/src/test/ui/borrowck/borrowck-uninit-after-item.rs
2019-09-06 03:46:08 +01:00

6 lines
123 B
Rust

fn main() {
let bar;
fn baz(_x: isize) { }
baz(bar); //~ ERROR use of possibly-uninitialized variable: `bar`
}