summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rfc-2497-if-let-chains/chains-without-let.stderr
blob: 30d5a6779fcd7ba8de7b439272d0284c2a2905e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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`.