]> git.proxmox.com Git - rustc.git/blob - src/test/ui/borrowck/reassignment_immutable_fields.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / borrowck / reassignment_immutable_fields.stderr
1 error[E0381]: partially assigned binding `x` isn't fully initialized
2 --> $DIR/reassignment_immutable_fields.rs:7:5
3 |
4 LL | let x: (u32, u32);
5 | - binding declared here but left uninitialized
6 LL | x.0 = 1;
7 | ^^^^^^^ `x` 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 `x` isn't fully initialized
12 --> $DIR/reassignment_immutable_fields.rs:15:5
13 |
14 LL | let x: (u32, u32);
15 | - binding declared here but left uninitialized
16 LL | x.0 = 1;
17 | ^^^^^^^ `x` 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: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0381`.