rust/src/test/ui/borrowck/borrowck-uninit-after-item.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
123 B
Rust
Raw Normal View History

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