Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
async-await
/
no-non-guaranteed-initialization.rs
blob: 24070fe33083ca28fbfb0431d2c9264da6e2a72e [
file
] [
log
] [
blame
]
// edition:2018
// compile-flags: --crate-type lib
async
fn
no_non_guaranteed_initialization
(
x
:
usize
)
->
usize
{
let
y
;
if
x
>
5
{
y
=
echo
(
10
).
await
;
}
y
//~^ use of possibly-uninitialized variable: `y`
}
async
fn
echo
(
x
:
usize
)
->
usize
{
x
+
1
}