Sign in
fuchsia
/
third_party
/
rust
/
6e1d94708a0a4a35ca7e46c6cac98adf62fe800e
/
.
/
tests
/
ui
/
borrowck
/
borrowck-if-with-else.rs
blob: 69d450c59891a9b1258a42ed7e3908aa0d35ea9d [
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 E0381
}