Sign in
fuchsia
/
third_party
/
rust
/
12307b3b08edee543a78fb9d4a837fbd6d6ac0fa
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-if-with-else.rs
blob: c13318b16c2fa1f2f4c26ca1f1fae3c197aa4786 [
file
] [
log
] [
blame
]
fn
foo
(
x
:
isize
)
{
println
!(
"{}"
,
x
);
}
fn
main
()
{
let
x
:
isize
;
if
1
>
2
{
println
!(
"whoops"
);
}
else
{
x
=
10
;
}
foo
(
x
);
//~ ERROR use of possibly-uninitialized variable: `x`
}