]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/assign_mutable_fields.stderr
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / borrowck / assign_mutable_fields.stderr
1 error[E0381]: partially assigned binding `x` isn't fully initialized
2   --> $DIR/assign_mutable_fields.rs:9:5
3    |
4 LL |     let mut 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/assign_mutable_fields.rs:17:5
13    |
14 LL |     let mut 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`.