Sign in
fuchsia
/
third_party
/
rust
/
0.4
/
.
/
src
/
test
/
compile-fail
/
liveness-break-uninit-2.rs
blob: 029d0aef9daed9ef9f0c806d36f1513a77e3fd8c [
file
]
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
());
}