]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-54499-field-mutation-of-never-init.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / issue-54499-field-mutation-of-never-init.stderr
1 error[E0381]: partially assigned binding `t` isn't fully initialized
2   --> $DIR/issue-54499-field-mutation-of-never-init.rs:12:9
3    |
4 LL |         let t: Tuple;
5    |             - binding declared here but left uninitialized
6 LL |         t.0 = S(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 `u` isn't fully initialized
12   --> $DIR/issue-54499-field-mutation-of-never-init.rs:20:9
13    |
14 LL |         let u: Tpair;
15    |             - binding declared here but left uninitialized
16 LL |         u.0 = S(1);
17    |         ^^^^^^^^^^ `u` 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 `v` isn't fully initialized
22   --> $DIR/issue-54499-field-mutation-of-never-init.rs:28:9
23    |
24 LL |         let v: Spair;
25    |             - binding declared here but left uninitialized
26 LL |         v.x = S(1);
27    |         ^^^^^^^^^^ `v` 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: aborting due to 3 previous errors
32
33 For more information about this error, try `rustc --explain E0381`.