mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 11:34:11 +00:00
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
error[E0381]: used binding `z` is possibly-uninitialized
|
|
--> $DIR/chains-without-let.rs:3:34
|
|
|
|
|
LL | let z;
|
|
| - binding declared here but left uninitialized
|
|
LL | if true && { z = 3; true} && z == 3 {}
|
|
| ----- ^ `z` used here but it is possibly-uninitialized
|
|
| |
|
|
| binding initialized here in some conditions
|
|
|
|
error[E0381]: used binding `z` is possibly-uninitialized
|
|
--> $DIR/chains-without-let.rs:9:31
|
|
|
|
|
LL | let z;
|
|
| - binding declared here but left uninitialized
|
|
LL | true && { z = 3; true} && z == 3;
|
|
| ----- ^ `z` used here but it is possibly-uninitialized
|
|
| |
|
|
| binding initialized here in some conditions
|
|
|
|
error[E0381]: used binding `z` is possibly-uninitialized
|
|
--> $DIR/chains-without-let.rs:15:36
|
|
|
|
|
LL | let z;
|
|
| - binding declared here but left uninitialized
|
|
LL | if false || { z = 3; false} || z == 3 {}
|
|
| ----- ^ `z` used here but it is possibly-uninitialized
|
|
| |
|
|
| binding initialized here in some conditions
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0381`.
|