1 error[E0381]: partially assigned binding `s` isn't fully initialized
2 --> $DIR/issue-21232-partial-init-and-use.rs:97:5
5 | - binding declared here but left uninitialized
6 LL | s.x = 10; s.y = Box::new(20);
7 | ^^^^^^^^ `s` partially assigned here but it isn't fully initialized
9 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
11 error[E0381]: partially assigned binding `t` isn't fully initialized
12 --> $DIR/issue-21232-partial-init-and-use.rs:103:5
15 | - binding declared here but left uninitialized
16 LL | t.0 = 10; t.1 = Box::new(20);
17 | ^^^^^^^^ `t` partially assigned here but it isn't fully initialized
19 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
21 error[E0382]: assign to part of moved value: `s`
22 --> $DIR/issue-21232-partial-init-and-use.rs:109:5
24 LL | let mut s: S<B> = S::new(); drop(s);
25 | ----- - value moved here
27 | move occurs because `s` has type `S<Box<u32>>`, which does not implement the `Copy` trait
28 LL | s.x = 10; s.y = Box::new(20);
29 | ^^^^^^^^ value partially assigned here after move
31 error[E0382]: assign to part of moved value: `t`
32 --> $DIR/issue-21232-partial-init-and-use.rs:116:5
34 LL | let mut t: T = (0, Box::new(0)); drop(t);
35 | ----- - value moved here
37 | move occurs because `t` has type `(u32, Box<u32>)`, which does not implement the `Copy` trait
38 LL | t.0 = 10; t.1 = Box::new(20);
39 | ^^^^^^^^ value partially assigned here after move
41 help: consider cloning the value if the performance cost is acceptable
43 LL | let mut t: T = (0, Box::new(0)); drop(t.clone());
46 error[E0381]: partially assigned binding `s` isn't fully initialized
47 --> $DIR/issue-21232-partial-init-and-use.rs:123:5
50 | - binding declared here but left uninitialized
52 | ^^^^^^^^ `s` partially assigned here but it isn't fully initialized
54 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
56 error[E0381]: partially assigned binding `t` isn't fully initialized
57 --> $DIR/issue-21232-partial-init-and-use.rs:129:5
60 | - binding declared here but left uninitialized
62 | ^^^^^^^^ `t` partially assigned here but it isn't fully initialized
64 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
66 error[E0382]: assign to part of moved value: `s`
67 --> $DIR/issue-21232-partial-init-and-use.rs:135:5
69 LL | let mut s: S<B> = S::new(); drop(s);
70 | ----- - value moved here
72 | move occurs because `s` has type `S<Box<u32>>`, which does not implement the `Copy` trait
74 | ^^^^^^^^ value partially assigned here after move
76 error[E0382]: assign to part of moved value: `t`
77 --> $DIR/issue-21232-partial-init-and-use.rs:142:5
79 LL | let mut t: T = (0, Box::new(0)); drop(t);
80 | ----- - value moved here
82 | move occurs because `t` has type `(u32, Box<u32>)`, which does not implement the `Copy` trait
84 | ^^^^^^^^ value partially assigned here after move
86 help: consider cloning the value if the performance cost is acceptable
88 LL | let mut t: T = (0, Box::new(0)); drop(t.clone());
91 error[E0381]: partially assigned binding `s` isn't fully initialized
92 --> $DIR/issue-21232-partial-init-and-use.rs:149:5
95 | - binding declared here but left uninitialized
97 | ^^^^^^^^ `s` partially assigned here but it isn't fully initialized
99 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
101 error[E0381]: partially assigned binding `t` isn't fully initialized
102 --> $DIR/issue-21232-partial-init-and-use.rs:155:5
105 | - binding declared here but left uninitialized
107 | ^^^^^^^^ `t` partially assigned here but it isn't fully initialized
109 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
111 error[E0381]: partially assigned binding `q` isn't fully initialized
112 --> $DIR/issue-21232-partial-init-and-use.rs:170:5
115 | - binding declared here but left uninitialized
116 LL | q.r.f.x = 10; q.r.f.y = Box::new(20);
117 | ^^^^^^^^^^^^ `q.r.f` partially assigned here but it isn't fully initialized
119 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
121 error[E0381]: partially assigned binding `q` isn't fully initialized
122 --> $DIR/issue-21232-partial-init-and-use.rs:176:5
125 | - binding declared here but left uninitialized
126 LL | q.r.f.0 = 10; q.r.f.1 = Box::new(20);
127 | ^^^^^^^^^^^^ `q.r.f` partially assigned here but it isn't fully initialized
129 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
131 error[E0382]: assign to part of moved value: `q.r`
132 --> $DIR/issue-21232-partial-init-and-use.rs:182:5
134 LL | let mut q: Q<S<B>> = Q::new(S::new()); drop(q.r);
135 | --- value moved here
136 LL | q.r.f.x = 10; q.r.f.y = Box::new(20);
137 | ^^^^^^^^^^^^ value partially assigned here after move
139 = note: move occurs because `q.r` has type `R<S<Box<u32>>>`, which does not implement the `Copy` trait
141 error[E0382]: assign to part of moved value: `q.r`
142 --> $DIR/issue-21232-partial-init-and-use.rs:189:5
144 LL | let mut q: Q<T> = Q::new((0, Box::new(0))); drop(q.r);
145 | --- value moved here
146 LL | q.r.f.0 = 10; q.r.f.1 = Box::new(20);
147 | ^^^^^^^^^^^^ value partially assigned here after move
149 = note: move occurs because `q.r` has type `R<(u32, Box<u32>)>`, which does not implement the `Copy` trait
151 error[E0381]: partially assigned binding `q` isn't fully initialized
152 --> $DIR/issue-21232-partial-init-and-use.rs:196:5
155 | - binding declared here but left uninitialized
157 | ^^^^^^^^^^^^ `q.r.f` partially assigned here but it isn't fully initialized
159 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
161 error[E0381]: partially assigned binding `q` isn't fully initialized
162 --> $DIR/issue-21232-partial-init-and-use.rs:202:5
165 | - binding declared here but left uninitialized
167 | ^^^^^^^^^^^^ `q.r.f` partially assigned here but it isn't fully initialized
169 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
171 error[E0382]: assign to part of moved value: `q.r`
172 --> $DIR/issue-21232-partial-init-and-use.rs:208:5
174 LL | let mut q: Q<S<B>> = Q::new(S::new()); drop(q.r);
175 | --- value moved here
177 | ^^^^^^^^^^^^ value partially assigned here after move
179 = note: move occurs because `q.r` has type `R<S<Box<u32>>>`, which does not implement the `Copy` trait
181 error[E0382]: assign to part of moved value: `q.r`
182 --> $DIR/issue-21232-partial-init-and-use.rs:215:5
184 LL | let mut q: Q<T> = Q::new((0, Box::new(0))); drop(q.r);
185 | --- value moved here
187 | ^^^^^^^^^^^^ value partially assigned here after move
189 = note: move occurs because `q.r` has type `R<(u32, Box<u32>)>`, which does not implement the `Copy` trait
191 error[E0381]: partially assigned binding `q` isn't fully initialized
192 --> $DIR/issue-21232-partial-init-and-use.rs:222:5
194 LL | let mut q: Q<S<Void>>;
195 | ----- binding declared here but left uninitialized
197 | ^^^^^^^^^^^^ `q.r.f` partially assigned here but it isn't fully initialized
199 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
201 error[E0381]: partially assigned binding `q` isn't fully initialized
202 --> $DIR/issue-21232-partial-init-and-use.rs:228:5
204 LL | let mut q: Q<Tvoid>;
205 | ----- binding declared here but left uninitialized
207 | ^^^^^^^^^^^^ `q.r.f` partially assigned here but it isn't fully initialized
209 = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
211 error[E0382]: assign to part of moved value: `c`
212 --> $DIR/issue-21232-partial-init-and-use.rs:245:13
214 LL | let mut c = (1, "".to_owned());
215 | ----- move occurs because `c` has type `(i32, String)`, which does not implement the `Copy` trait
218 | -- value moved here
220 | ^^^^^^^ value partially assigned here after move
222 help: borrow this binding in the pattern to avoid moving the value
227 error[E0382]: assign to part of moved value: `c`
228 --> $DIR/issue-21232-partial-init-and-use.rs:255:13
230 LL | let mut c = (1, (1, "".to_owned()));
231 | ----- move occurs because `c` has type `(i32, (i32, String))`, which does not implement the `Copy` trait
234 | -- value moved here
236 | ^^^^^^^^^^^ value partially assigned here after move
238 help: borrow this binding in the pattern to avoid moving the value
243 error[E0382]: assign to part of moved value: `c.1`
244 --> $DIR/issue-21232-partial-init-and-use.rs:263:13
247 | -- value moved here
248 LL | ((c.1).1).0 = 3;
249 | ^^^^^^^^^^^^^^^ value partially assigned here after move
251 = note: move occurs because `c.1` has type `(i32, (i32, String))`, which does not implement the `Copy` trait
252 help: borrow this binding in the pattern to avoid moving the value
257 error: aborting due to 23 previous errors
259 Some errors have detailed explanations: E0381, E0382.
260 For more information about an error, try `rustc --explain E0381`.