1
1
error[E0381]: assign to part of possibly-uninitialized variable: `s`
2
- --> $DIR/issue-21232-partial-init-and-use.rs:99 :5
2
+ --> $DIR/issue-21232-partial-init-and-use.rs:97 :5
3
3
|
4
4
LL | s.x = 10; s.y = Box::new(20);
5
5
| ^^^^^^^^ use of possibly-uninitialized `s`
6
6
7
7
error[E0381]: assign to part of possibly-uninitialized variable: `t`
8
- --> $DIR/issue-21232-partial-init-and-use.rs:106 :5
8
+ --> $DIR/issue-21232-partial-init-and-use.rs:104 :5
9
9
|
10
10
LL | t.0 = 10; t.1 = Box::new(20);
11
11
| ^^^^^^^^ use of possibly-uninitialized `t`
12
12
13
13
error[E0382]: assign to part of moved value: `s`
14
- --> $DIR/issue-21232-partial-init-and-use.rs:113 :5
14
+ --> $DIR/issue-21232-partial-init-and-use.rs:111 :5
15
15
|
16
16
LL | let mut s: S<B> = S::new(); drop(s);
17
17
| ----- - value moved here
@@ -21,7 +21,7 @@ LL | s.x = 10; s.y = Box::new(20);
21
21
| ^^^^^^^^ value partially assigned here after move
22
22
23
23
error[E0382]: assign to part of moved value: `t`
24
- --> $DIR/issue-21232-partial-init-and-use.rs:120 :5
24
+ --> $DIR/issue-21232-partial-init-and-use.rs:118 :5
25
25
|
26
26
LL | let mut t: T = (0, Box::new(0)); drop(t);
27
27
| ----- - value moved here
@@ -31,19 +31,19 @@ LL | t.0 = 10; t.1 = Box::new(20);
31
31
| ^^^^^^^^ value partially assigned here after move
32
32
33
33
error[E0381]: assign to part of possibly-uninitialized variable: `s`
34
- --> $DIR/issue-21232-partial-init-and-use.rs:127 :5
34
+ --> $DIR/issue-21232-partial-init-and-use.rs:125 :5
35
35
|
36
36
LL | s.x = 10;
37
37
| ^^^^^^^^ use of possibly-uninitialized `s`
38
38
39
39
error[E0381]: assign to part of possibly-uninitialized variable: `t`
40
- --> $DIR/issue-21232-partial-init-and-use.rs:134 :5
40
+ --> $DIR/issue-21232-partial-init-and-use.rs:132 :5
41
41
|
42
42
LL | t.0 = 10;
43
43
| ^^^^^^^^ use of possibly-uninitialized `t`
44
44
45
45
error[E0382]: assign to part of moved value: `s`
46
- --> $DIR/issue-21232-partial-init-and-use.rs:141 :5
46
+ --> $DIR/issue-21232-partial-init-and-use.rs:139 :5
47
47
|
48
48
LL | let mut s: S<B> = S::new(); drop(s);
49
49
| ----- - value moved here
@@ -53,7 +53,7 @@ LL | s.x = 10;
53
53
| ^^^^^^^^ value partially assigned here after move
54
54
55
55
error[E0382]: assign to part of moved value: `t`
56
- --> $DIR/issue-21232-partial-init-and-use.rs:148 :5
56
+ --> $DIR/issue-21232-partial-init-and-use.rs:146 :5
57
57
|
58
58
LL | let mut t: T = (0, Box::new(0)); drop(t);
59
59
| ----- - value moved here
@@ -63,31 +63,31 @@ LL | t.0 = 10;
63
63
| ^^^^^^^^ value partially assigned here after move
64
64
65
65
error[E0381]: assign to part of possibly-uninitialized variable: `s`
66
- --> $DIR/issue-21232-partial-init-and-use.rs:155 :5
66
+ --> $DIR/issue-21232-partial-init-and-use.rs:153 :5
67
67
|
68
68
LL | s.x = 10;
69
69
| ^^^^^^^^ use of possibly-uninitialized `s`
70
70
71
71
error[E0381]: assign to part of possibly-uninitialized variable: `t`
72
- --> $DIR/issue-21232-partial-init-and-use.rs:162 :5
72
+ --> $DIR/issue-21232-partial-init-and-use.rs:160 :5
73
73
|
74
74
LL | t.0 = 10;
75
75
| ^^^^^^^^ use of possibly-uninitialized `t`
76
76
77
77
error[E0381]: assign to part of possibly-uninitialized variable: `q`
78
- --> $DIR/issue-21232-partial-init-and-use.rs:178 :5
78
+ --> $DIR/issue-21232-partial-init-and-use.rs:176 :5
79
79
|
80
80
LL | q.r.f.x = 10; q.r.f.y = Box::new(20);
81
81
| ^^^^^^^^^^^^ use of possibly-uninitialized `q.r.f`
82
82
83
83
error[E0381]: assign to part of possibly-uninitialized variable: `q`
84
- --> $DIR/issue-21232-partial-init-and-use.rs:185 :5
84
+ --> $DIR/issue-21232-partial-init-and-use.rs:183 :5
85
85
|
86
86
LL | q.r.f.0 = 10; q.r.f.1 = Box::new(20);
87
87
| ^^^^^^^^^^^^ use of possibly-uninitialized `q.r.f`
88
88
89
89
error[E0382]: assign to part of moved value: `q.r`
90
- --> $DIR/issue-21232-partial-init-and-use.rs:192 :5
90
+ --> $DIR/issue-21232-partial-init-and-use.rs:190 :5
91
91
|
92
92
LL | let mut q: Q<S<B>> = Q::new(S::new()); drop(q.r);
93
93
| --- value moved here
@@ -97,7 +97,7 @@ LL | q.r.f.x = 10; q.r.f.y = Box::new(20);
97
97
= note: move occurs because `q.r` has type `R<S<std::boxed::Box<u32>>>`, which does not implement the `Copy` trait
98
98
99
99
error[E0382]: assign to part of moved value: `q.r`
100
- --> $DIR/issue-21232-partial-init-and-use.rs:199 :5
100
+ --> $DIR/issue-21232-partial-init-and-use.rs:197 :5
101
101
|
102
102
LL | let mut q: Q<T> = Q::new((0, Box::new(0))); drop(q.r);
103
103
| --- value moved here
@@ -107,19 +107,19 @@ LL | q.r.f.0 = 10; q.r.f.1 = Box::new(20);
107
107
= note: move occurs because `q.r` has type `R<(u32, std::boxed::Box<u32>)>`, which does not implement the `Copy` trait
108
108
109
109
error[E0381]: assign to part of possibly-uninitialized variable: `q`
110
- --> $DIR/issue-21232-partial-init-and-use.rs:206 :5
110
+ --> $DIR/issue-21232-partial-init-and-use.rs:204 :5
111
111
|
112
112
LL | q.r.f.x = 10;
113
113
| ^^^^^^^^^^^^ use of possibly-uninitialized `q.r.f`
114
114
115
115
error[E0381]: assign to part of possibly-uninitialized variable: `q`
116
- --> $DIR/issue-21232-partial-init-and-use.rs:213 :5
116
+ --> $DIR/issue-21232-partial-init-and-use.rs:211 :5
117
117
|
118
118
LL | q.r.f.0 = 10;
119
119
| ^^^^^^^^^^^^ use of possibly-uninitialized `q.r.f`
120
120
121
121
error[E0382]: assign to part of moved value: `q.r`
122
- --> $DIR/issue-21232-partial-init-and-use.rs:220 :5
122
+ --> $DIR/issue-21232-partial-init-and-use.rs:218 :5
123
123
|
124
124
LL | let mut q: Q<S<B>> = Q::new(S::new()); drop(q.r);
125
125
| --- value moved here
@@ -129,7 +129,7 @@ LL | q.r.f.x = 10;
129
129
= note: move occurs because `q.r` has type `R<S<std::boxed::Box<u32>>>`, which does not implement the `Copy` trait
130
130
131
131
error[E0382]: assign to part of moved value: `q.r`
132
- --> $DIR/issue-21232-partial-init-and-use.rs:227 :5
132
+ --> $DIR/issue-21232-partial-init-and-use.rs:225 :5
133
133
|
134
134
LL | let mut q: Q<T> = Q::new((0, Box::new(0))); drop(q.r);
135
135
| --- value moved here
@@ -139,19 +139,19 @@ LL | q.r.f.0 = 10;
139
139
= note: move occurs because `q.r` has type `R<(u32, std::boxed::Box<u32>)>`, which does not implement the `Copy` trait
140
140
141
141
error[E0381]: assign to part of possibly-uninitialized variable: `q`
142
- --> $DIR/issue-21232-partial-init-and-use.rs:234 :5
142
+ --> $DIR/issue-21232-partial-init-and-use.rs:232 :5
143
143
|
144
144
LL | q.r.f.x = 10;
145
145
| ^^^^^^^^^^^^ use of possibly-uninitialized `q.r.f`
146
146
147
147
error[E0381]: assign to part of possibly-uninitialized variable: `q`
148
- --> $DIR/issue-21232-partial-init-and-use.rs:241 :5
148
+ --> $DIR/issue-21232-partial-init-and-use.rs:239 :5
149
149
|
150
150
LL | q.r.f.0 = 10;
151
151
| ^^^^^^^^^^^^ use of possibly-uninitialized `q.r.f`
152
152
153
153
error[E0382]: assign to part of moved value: `c`
154
- --> $DIR/issue-21232-partial-init-and-use.rs:259 :13
154
+ --> $DIR/issue-21232-partial-init-and-use.rs:257 :13
155
155
|
156
156
LL | let mut c = (1, "".to_owned());
157
157
| ----- move occurs because `c` has type `(i32, std::string::String)`, which does not implement the `Copy` trait
@@ -162,7 +162,7 @@ LL | c.0 = 2;
162
162
| ^^^^^^^ value partially assigned here after move
163
163
164
164
error[E0382]: assign to part of moved value: `c`
165
- --> $DIR/issue-21232-partial-init-and-use.rs:269 :13
165
+ --> $DIR/issue-21232-partial-init-and-use.rs:267 :13
166
166
|
167
167
LL | let mut c = (1, (1, "".to_owned()));
168
168
| ----- move occurs because `c` has type `(i32, (i32, std::string::String))`, which does not implement the `Copy` trait
@@ -173,7 +173,7 @@ LL | (c.1).0 = 2;
173
173
| ^^^^^^^^^^^ value partially assigned here after move
174
174
175
175
error[E0382]: assign to part of moved value: `c.1`
176
- --> $DIR/issue-21232-partial-init-and-use.rs:277 :13
176
+ --> $DIR/issue-21232-partial-init-and-use.rs:275 :13
177
177
|
178
178
LL | c2 => {
179
179
| -- value moved here
0 commit comments