rust/src/test/ui/async-await/no-non-guaranteed-initialization.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
478 B
Plaintext
Raw Normal View History

error[E0381]: binding `y` isn't initialized in all conditions
--> $DIR/no-non-guaranteed-initialization.rs:9:5
|
LL | let y;
| - variable declared here
LL | if x > 5 {
| ----- this `if` expression might be missing an `else` arm where `y` is initialized
...
LL | y
| ^ `y` used here but it isn't initialized in all conditions
error: aborting due to previous error
For more information about this error, try `rustc --explain E0381`.