]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2497-if-let-chains/chains-without-let.stderr
Rollup merge of #105758 - Nilstrieb:typeck-results-mod, r=compiler-errors
[rust.git] / src / test / ui / rfc-2497-if-let-chains / chains-without-let.stderr
1 error[E0381]: used binding `z` is possibly-uninitialized
2   --> $DIR/chains-without-let.rs:3:34
3    |
4 LL |     let z;
5    |         - binding declared here but left uninitialized
6 LL |     if true && { z = 3; true} && z == 3 {}
7    |                  -----           ^ `z` used here but it is possibly-uninitialized
8    |                  |
9    |                  binding initialized here in some conditions
10
11 error[E0381]: used binding `z` is possibly-uninitialized
12   --> $DIR/chains-without-let.rs:9:31
13    |
14 LL |     let z;
15    |         - binding declared here but left uninitialized
16 LL |     true && { z = 3; true} && z == 3;
17    |               -----           ^ `z` used here but it is possibly-uninitialized
18    |               |
19    |               binding initialized here in some conditions
20
21 error[E0381]: used binding `z` is possibly-uninitialized
22   --> $DIR/chains-without-let.rs:15:36
23    |
24 LL |     let z;
25    |         - binding declared here but left uninitialized
26 LL |     if false || { z = 3; false} || z == 3 {}
27    |                   -----            ^ `z` used here but it is possibly-uninitialized
28    |                   |
29    |                   binding initialized here in some conditions
30
31 error: aborting due to 3 previous errors
32
33 For more information about this error, try `rustc --explain E0381`.