rust/tests/ui/rfcs/rfc-2497-if-let-chains/chains-without-let.stderr

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

34 lines
1.3 KiB
Plaintext
Raw Normal View History

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
|
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
| |
| 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
|
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
| |
| 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
|
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
| |
| 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`.