2022-06-22 13:04:36 -05:00
|
|
|
error[E0381]: used binding `z` is possibly-uninitialized
|
2022-01-18 16:38:17 -06:00
|
|
|
--> $DIR/chains-without-let.rs:3:34
|
|
|
|
|
|
2022-06-21 13:57:45 -05:00
|
|
|
LL | let z;
|
2022-06-21 17:54:17 -05:00
|
|
|
| - binding declared here but left uninitialized
|
2022-01-18 16:38:17 -06:00
|
|
|
LL | if true && { z = 3; true} && z == 3 {}
|
2022-06-22 13:04:36 -05:00
|
|
|
| ----- ^ `z` used here but it is possibly-uninitialized
|
2022-06-21 13:57:45 -05:00
|
|
|
| |
|
|
|
|
| binding initialized here in some conditions
|
2022-01-18 16:38:17 -06:00
|
|
|
|
2022-06-22 13:04:36 -05:00
|
|
|
error[E0381]: used binding `z` is possibly-uninitialized
|
2022-01-18 16:38:17 -06:00
|
|
|
--> $DIR/chains-without-let.rs:9:31
|
|
|
|
|
|
2022-06-21 13:57:45 -05:00
|
|
|
LL | let z;
|
2022-06-21 17:54:17 -05:00
|
|
|
| - binding declared here but left uninitialized
|
2022-01-18 16:38:17 -06:00
|
|
|
LL | true && { z = 3; true} && z == 3;
|
2022-06-22 13:04:36 -05:00
|
|
|
| ----- ^ `z` used here but it is possibly-uninitialized
|
2022-06-21 13:57:45 -05:00
|
|
|
| |
|
|
|
|
| binding initialized here in some conditions
|
2022-01-18 16:38:17 -06:00
|
|
|
|
2022-06-22 13:04:36 -05:00
|
|
|
error[E0381]: used binding `z` is possibly-uninitialized
|
2022-01-18 16:38:17 -06:00
|
|
|
--> $DIR/chains-without-let.rs:15:36
|
|
|
|
|
|
2022-06-21 13:57:45 -05:00
|
|
|
LL | let z;
|
2022-06-21 17:54:17 -05:00
|
|
|
| - binding declared here but left uninitialized
|
2022-01-18 16:38:17 -06:00
|
|
|
LL | if false || { z = 3; false} || z == 3 {}
|
2022-06-22 13:04:36 -05:00
|
|
|
| ----- ^ `z` used here but it is possibly-uninitialized
|
2022-06-21 13:57:45 -05:00
|
|
|
| |
|
|
|
|
| binding initialized here in some conditions
|
2022-01-18 16:38:17 -06:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0381`.
|