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