@@ -18,7 +18,7 @@ LL | let mut s: S<B> = S::new(); drop(s);
18
18
| |
19
19
| move occurs because `s` has type `S<std::boxed::Box<u32>>`, which does not implement the `Copy` trait
20
20
LL | s.x = 10; s.y = Box::new(20);
21
- | ^^^^^^^^ value partially assigned here after partial move
21
+ | ^^^^^^^^ value partially assigned here after move
22
22
23
23
error[E0382]: assign to part of moved value: `t`
24
24
--> $DIR/issue-21232-partial-init-and-use.rs:120:5
@@ -28,7 +28,7 @@ LL | let mut t: T = (0, Box::new(0)); drop(t);
28
28
| |
29
29
| move occurs because `t` has type `(u32, std::boxed::Box<u32>)`, which does not implement the `Copy` trait
30
30
LL | t.0 = 10; t.1 = Box::new(20);
31
- | ^^^^^^^^ value partially assigned here after partial move
31
+ | ^^^^^^^^ value partially assigned here after move
32
32
33
33
error[E0381]: assign to part of possibly uninitialized variable: `s`
34
34
--> $DIR/issue-21232-partial-init-and-use.rs:127:5
@@ -50,7 +50,7 @@ LL | let mut s: S<B> = S::new(); drop(s);
50
50
| |
51
51
| move occurs because `s` has type `S<std::boxed::Box<u32>>`, which does not implement the `Copy` trait
52
52
LL | s.x = 10;
53
- | ^^^^^^^^ value partially assigned here after partial move
53
+ | ^^^^^^^^ value partially assigned here after move
54
54
55
55
error[E0382]: assign to part of moved value: `t`
56
56
--> $DIR/issue-21232-partial-init-and-use.rs:148:5
@@ -60,7 +60,7 @@ LL | let mut t: T = (0, Box::new(0)); drop(t);
60
60
| |
61
61
| move occurs because `t` has type `(u32, std::boxed::Box<u32>)`, which does not implement the `Copy` trait
62
62
LL | t.0 = 10;
63
- | ^^^^^^^^ value partially assigned here after partial move
63
+ | ^^^^^^^^ value partially assigned here after move
64
64
65
65
error[E0381]: assign to part of possibly uninitialized variable: `s`
66
66
--> $DIR/issue-21232-partial-init-and-use.rs:155:5
@@ -159,7 +159,7 @@ LL | match c {
159
159
LL | c2 => {
160
160
| -- value moved here
161
161
LL | c.0 = 2; //~ ERROR assign to part of moved value
162
- | ^^^^^^^ value partially assigned here after partial move
162
+ | ^^^^^^^ value partially assigned here after move
163
163
164
164
error[E0382]: assign to part of moved value: `c`
165
165
--> $DIR/issue-21232-partial-init-and-use.rs:269:13
0 commit comments