15 lines
220 B
Rust
15 lines
220 B
Rust
fn foo() -> isize {
|
|
let x: isize;
|
|
|
|
loop {
|
|
break;
|
|
x = 0;
|
|
}
|
|
|
|
println!("{}", x); //~ ERROR use of possibly uninitialized variable: `x`
|
|
|
|
return 17;
|
|
}
|
|
|
|
fn main() { println!("{}", foo()); }
|