2019-09-01 12:09:59 -05:00
|
|
|
error[E0381]: use of possibly-uninitialized variable: `a`
|
2019-04-22 02:40:08 -05:00
|
|
|
--> $DIR/borrowck-uninit-field-access.rs:21:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-17 04:52:07 -05:00
|
|
|
LL | let _ = a.x + 1;
|
2019-09-01 12:09:59 -05:00
|
|
|
| ^^^ use of possibly-uninitialized `a.x`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2018-10-16 10:08:59 -05:00
|
|
|
error[E0382]: use of moved value: `line1.origin`
|
2019-04-22 02:40:08 -05:00
|
|
|
--> $DIR/borrowck-uninit-field-access.rs:25:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let _moved = line1.origin;
|
|
|
|
| ------------ value moved here
|
2019-03-17 04:52:07 -05:00
|
|
|
LL | let _ = line1.origin.x + 1;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^^^^ value used here after move
|
|
|
|
|
|
|
|
|
= note: move occurs because `line1.origin` has type `Point`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `line2`
|
2019-04-22 02:40:08 -05:00
|
|
|
--> $DIR/borrowck-uninit-field-access.rs:29:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let _moved = (line2.origin, line2.middle);
|
|
|
|
| ------------ value moved here
|
2019-03-17 04:52:07 -05:00
|
|
|
LL | line2.consume();
|
2019-02-05 14:56:29 -06:00
|
|
|
| ^^^^^ value used here after partial move
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
= note: move occurs because `line2.middle` has type `Point`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0381, E0382.
|
2018-08-08 07:28:26 -05:00
|
|
|
For more information about an error, try `rustc --explain E0381`.
|