@@ -11,6 +11,41 @@ help: consider assigning a value
1111LL | let x: isize = 0;
1212 | +++
1313
14- error: aborting due to 1 previous error
14+ error[E0381]: used binding `a` isn't initialized
15+ --> $DIR/borrowck-uninit.rs:14:32
16+ |
17+ LL | let (a, );
18+ | - binding declared here but left uninitialized
19+ ...
20+ LL | let _: (u8, u8, u8, u8) = (a, b, c, d);
21+ | ^ `a` used here but it isn't initialized
22+
23+ error[E0381]: used binding `b` isn't initialized
24+ --> $DIR/borrowck-uninit.rs:14:35
25+ |
26+ LL | let [b, ];
27+ | - binding declared here but left uninitialized
28+ ...
29+ LL | let _: (u8, u8, u8, u8) = (a, b, c, d);
30+ | ^ `b` used here but it isn't initialized
31+
32+ error[E0381]: used binding `c` isn't initialized
33+ --> $DIR/borrowck-uninit.rs:14:38
34+ |
35+ LL | let A(c);
36+ | - binding declared here but left uninitialized
37+ LL | let B { d };
38+ LL | let _: (u8, u8, u8, u8) = (a, b, c, d);
39+ | ^ `c` used here but it isn't initialized
40+
41+ error[E0381]: used binding `d` isn't initialized
42+ --> $DIR/borrowck-uninit.rs:14:41
43+ |
44+ LL | let B { d };
45+ | - binding declared here but left uninitialized
46+ LL | let _: (u8, u8, u8, u8) = (a, b, c, d);
47+ | ^ `d` used here but it isn't initialized
48+
49+ error: aborting due to 5 previous errors
1550
1651For more information about this error, try `rustc --explain E0381`.
0 commit comments