15 lines
251 B
Rust
15 lines
251 B
Rust
fn foo() -> int {
|
|
let x: int;
|
|
|
|
while 1 != 2 {
|
|
break;
|
|
x = 0; //~ WARNING unreachable statement
|
|
}
|
|
|
|
log(debug, x); //~ ERROR use of possibly uninitialized variable: `x`
|
|
|
|
return 17;
|
|
}
|
|
|
|
fn main() { log(debug, foo()); }
|