fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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