Sign in
fuchsia
/
third_party
/
rust
/
867ce769b6a27c8f359eb6573f5da8b34677d055
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-if-with-else.rs
blob: f632d61a6c3c1e43b1587ea2892faa229aa178f1 [
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`
}