Sign in
fuchsia
/
third_party
/
rust
/
20d43d03dd27568f609d621ce44673393e838892
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-break-uninit.rs
blob: 8ccb21ae8eebfb18716846741e8135dadbf3c735 [
file
] [
log
] [
blame
]
fn
foo
()
->
isize
{
let
x
:
isize
;
loop
{
break
;
x
=
0
;
}
println
!(
"{}"
,
x
);
//~ ERROR borrow of possibly-uninitialized variable: `x`
return
17
;
}
fn
main
()
{
println
!(
"{}"
,
foo
());
}