]>
Commit | Line | Data |
---|---|---|
064997fb | 1 | error[E0381]: partially assigned binding `x` isn't fully initialized |
48663c56 | 2 | --> $DIR/assign_mutable_fields.rs:9:5 |
b7449926 | 3 | | |
064997fb FG |
4 | LL | let mut x: (u32, u32); |
5 | | ----- binding declared here but left uninitialized | |
48663c56 | 6 | LL | 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 | 11 | error[E0381]: partially assigned binding `x` isn't fully initialized |
48663c56 | 12 | --> $DIR/assign_mutable_fields.rs:17:5 |
b7449926 | 13 | | |
064997fb FG |
14 | LL | let mut x: (u32, u32); |
15 | | ----- binding declared here but left uninitialized | |
48663c56 | 16 | LL | 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 | 21 | error: aborting due to 2 previous errors |
b7449926 XL |
22 | |
23 | For more information about this error, try `rustc --explain E0381`. |