blob: 293760efba5e51e5df738363a9d7deaf909b303e [file] [log] [blame]
fn test(cond: bool) {
let v;
while cond {
v = 3;
break;
}
println!("{}", v); //~ ERROR use of possibly uninitialized variable: `v`
}
fn main() {
test(true);
}