Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-if-no-else.rs
blob: f59bcad6f61d76f0f927115c29cce52a9967e6e5 [
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`
}