| error[E0381]: assign of possibly uninitialized variable: `d` |
| --> $DIR/issue-21232-partial-init-and-erroneous-use.rs:30:5 |
| | |
| LL | d.x = 10; |
| | ^^^^^^^^ use of possibly uninitialized `d` |
| |
| error[E0381]: assign of possibly uninitialized variable: `d` |
| --> $DIR/issue-21232-partial-init-and-erroneous-use.rs:36:5 |
| | |
| LL | d.x = 10; |
| | ^^^^^^^^ use of possibly uninitialized `d` |
| |
| error[E0382]: assign of moved value: `d` |
| --> $DIR/issue-21232-partial-init-and-erroneous-use.rs:43:5 |
| | |
| LL | drop(d); |
| | - value moved here |
| LL | d.x = 10; |
| | ^^^^^^^^ value assigned here after move |
| | |
| = note: move occurs because `d` has type `D`, which does not implement the `Copy` trait |
| |
| error[E0381]: assign to part of possibly uninitialized variable: `d` |
| --> $DIR/issue-21232-partial-init-and-erroneous-use.rs:49:5 |
| | |
| LL | d.s.y = 20; |
| | ^^^^^^^^^^ use of possibly uninitialized `d.s` |
| |
| error[E0381]: assign to part of possibly uninitialized variable: `d` |
| --> $DIR/issue-21232-partial-init-and-erroneous-use.rs:55:5 |
| | |
| LL | d.s.y = 20; |
| | ^^^^^^^^^^ use of possibly uninitialized `d.s` |
| |
| error[E0382]: assign to part of moved value: `d` |
| --> $DIR/issue-21232-partial-init-and-erroneous-use.rs:62:5 |
| | |
| LL | drop(d); |
| | - value moved here |
| LL | d.s.y = 20; |
| | ^^^^^^^^^^ value partially assigned here after move |
| | |
| = note: move occurs because `d` has type `D`, which does not implement the `Copy` trait |
| |
| error: aborting due to 6 previous errors |
| |
| Some errors occurred: E0381, E0382. |
| For more information about an error, try `rustc --explain E0381`. |