]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/disallow-possibly-uninitialized.stderr
Rollup merge of #106798 - scottmcm:signum-via-cmp, r=Mark-Simulacrum
[rust.git] / tests / ui / borrowck / disallow-possibly-uninitialized.stderr
1 error[E0381]: partially assigned binding `t` isn't fully initialized
2   --> $DIR/disallow-possibly-uninitialized.rs:6:5
3    |
4 LL |     let mut t: (u64, u64);
5    |         ----- binding declared here but left uninitialized
6 LL |     t.0 = 1;
7    |     ^^^^^^^ `t` partially assigned here but it isn't fully initialized
8    |
9    = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
10
11 error[E0381]: partially assigned binding `t` isn't fully initialized
12   --> $DIR/disallow-possibly-uninitialized.rs:11:5
13    |
14 LL |     let mut t: (u64, u64);
15    |         ----- binding declared here but left uninitialized
16 LL |     t.1 = 1;
17    |     ^^^^^^^ `t` partially assigned here but it isn't fully initialized
18    |
19    = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
20
21 error[E0381]: partially assigned binding `t` isn't fully initialized
22   --> $DIR/disallow-possibly-uninitialized.rs:16:5
23    |
24 LL |     let mut t: (u64, u64);
25    |         ----- binding declared here but left uninitialized
26 LL |     t.0 = 1;
27    |     ^^^^^^^ `t` partially assigned here but it isn't fully initialized
28    |
29    = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
30
31 error[E0381]: partially assigned binding `t` isn't fully initialized
32   --> $DIR/disallow-possibly-uninitialized.rs:20:5
33    |
34 LL |     let mut t: (u64,);
35    |         ----- binding declared here but left uninitialized
36 LL |     t.0 = 1;
37    |     ^^^^^^^ `t` partially assigned here but it isn't fully initialized
38    |
39    = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
40
41 error: aborting due to 4 previous errors
42
43 For more information about this error, try `rustc --explain E0381`.