File: borrowck-uninit.stderr

package info (click to toggle)
rustc 1.89.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 906,624 kB
  • sloc: xml: 158,148; python: 34,888; javascript: 19,595; sh: 19,221; ansic: 13,046; cpp: 7,144; asm: 4,376; makefile: 692; lisp: 174; sql: 15
file content (51 lines) | stat: -rw-r--r-- 1,696 bytes parent folder | download | duplicates (14)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
error[E0381]: used binding `x` isn't initialized
  --> $DIR/borrowck-uninit.rs:5:9
   |
LL |     let x: isize;
   |         - binding declared here but left uninitialized
LL |     foo(x);
   |         ^ `x` used here but it isn't initialized
   |
help: consider assigning a value
   |
LL |     let x: isize = 42;
   |                  ++++

error[E0381]: used binding `a` isn't initialized
  --> $DIR/borrowck-uninit.rs:14:32
   |
LL |     let (a, );
   |          - binding declared here but left uninitialized
...
LL |     let _: (u8, u8, u8, u8) = (a, b, c, d);
   |                                ^ `a` used here but it isn't initialized

error[E0381]: used binding `b` isn't initialized
  --> $DIR/borrowck-uninit.rs:14:35
   |
LL |     let [b, ];
   |          - binding declared here but left uninitialized
...
LL |     let _: (u8, u8, u8, u8) = (a, b, c, d);
   |                                   ^ `b` used here but it isn't initialized

error[E0381]: used binding `c` isn't initialized
  --> $DIR/borrowck-uninit.rs:14:38
   |
LL |     let A(c);
   |           - binding declared here but left uninitialized
LL |     let B { d };
LL |     let _: (u8, u8, u8, u8) = (a, b, c, d);
   |                                      ^ `c` used here but it isn't initialized

error[E0381]: used binding `d` isn't initialized
  --> $DIR/borrowck-uninit.rs:14:41
   |
LL |     let B { d };
   |             - binding declared here but left uninitialized
LL |     let _: (u8, u8, u8, u8) = (a, b, c, d);
   |                                         ^ `d` used here but it isn't initialized

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0381`.