]> git.proxmox.com Git - rustc.git/blame - src/test/ui/borrowck/assign_mutable_fields.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / borrowck / assign_mutable_fields.stderr
CommitLineData
064997fb 1error[E0381]: partially assigned binding `x` isn't fully initialized
48663c56 2 --> $DIR/assign_mutable_fields.rs:9:5
b7449926 3 |
064997fb
FG
4LL | let mut x: (u32, u32);
5 | ----- binding declared here but left uninitialized
48663c56 6LL | x.0 = 1;
064997fb
FG
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`
b7449926 10
064997fb 11error[E0381]: partially assigned binding `x` isn't fully initialized
48663c56 12 --> $DIR/assign_mutable_fields.rs:17:5
b7449926 13 |
064997fb
FG
14LL | let mut x: (u32, u32);
15 | ----- binding declared here but left uninitialized
48663c56 16LL | x.0 = 1;
064997fb
FG
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`
b7449926 20
48663c56 21error: aborting due to 2 previous errors
b7449926
XL
22
23For more information about this error, try `rustc --explain E0381`.