File: borrowck-uninit.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (51 lines) | stat: -rw-r--r-- 1,696 bytes parent folder | download | duplicates (3)
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`.