]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/no-non-guaranteed-initialization.stderr
Review comments: wording
[rust.git] / src / test / ui / async-await / no-non-guaranteed-initialization.stderr
1 error[E0381]: used binding `y` is possibly-uninitialized
2   --> $DIR/no-non-guaranteed-initialization.rs:9:5
3    |
4 LL |     let y;
5    |         - binding declared here but left uninitialized
6 LL |     if x > 5 {
7    |        ----- if this `if` condition is `false`, `y` is not initialized
8 LL |         y = echo(10).await;
9 LL |     }
10    |      - an `else` arm might be missing here, initializing `y`
11 LL |     y
12    |     ^ `y` used here but it is possibly-uninitialized
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0381`.