blob: 9f35a4a8d83bd82e3d52c41088e6c13c8e7074bb [file] [log] [blame]
error[E0381]: use of possibly-uninitialized variable: `a`
--> $DIR/borrowck-uninit-field-access.rs:21:13
|
LL | let _ = a.x + 1;
| ^^^ use of possibly-uninitialized `a.x`
error[E0382]: use of moved value: `line1.origin`
--> $DIR/borrowck-uninit-field-access.rs:25:13
|
LL | let _moved = line1.origin;
| ------------ value moved here
LL | let _ = line1.origin.x + 1;
| ^^^^^^^^^^^^^^ 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`
--> $DIR/borrowck-uninit-field-access.rs:29:5
|
LL | let _moved = (line2.origin, line2.middle);
| ------------ value moved here
LL | line2.consume();
| ^^^^^ value used here after partial move
|
= note: move occurs because `line2.middle` has type `Point`, which does not implement the `Copy` trait
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0381, E0382.
For more information about an error, try `rustc --explain E0381`.