fork/rust

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

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

master
1.5 KiB33 linesraw
1error[E0381]: partially assigned binding `t` isn't fully initialized
2  --> $DIR/partial-initialization-across-await.rs:13:5
3   |
4LL |     let mut t: (i32, i32);
5   |         ----- binding declared here but left uninitialized
6LL |     t.0 = 42;
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
11error[E0381]: partially assigned binding `t` isn't fully initialized
12  --> $DIR/partial-initialization-across-await.rs:21:5
13   |
14LL |     let mut t: T;
15   |         ----- binding declared here but left uninitialized
16LL |     t.0 = 42;
17   |     ^^^^^^^^ `t` 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[E0381]: partially assigned binding `t` isn't fully initialized
22  --> $DIR/partial-initialization-across-await.rs:29:5
23   |
24LL |     let mut t: S;
25   |         ----- binding declared here but left uninitialized
26LL |     t.x = 42;
27   |     ^^^^^^^^ `t` 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
31error: aborting due to 3 previous errors
32
33For more information about this error, try `rustc --explain E0381`.