rust/tests/ui/opt-in-copy.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
698 B
Plaintext
Raw Normal View History

2023-03-08 07:55:51 +08:00
error[E0204]: the trait `Copy` cannot be implemented for this type
2022-09-16 06:06:25 +08:00
--> $DIR/opt-in-copy.rs:7:15
2018-08-08 20:28:26 +08:00
|
LL | but_i_cant: CantCopyThis,
| ------------------------ this field does not implement `Copy`
...
LL | impl Copy for IWantToCopyThis {}
2022-09-16 06:06:25 +08:00
| ^^^^^^^^^^^^^^^
2018-08-08 20:28:26 +08:00
2023-03-08 07:55:51 +08:00
error[E0204]: the trait `Copy` cannot be implemented for this type
2022-09-16 06:06:25 +08:00
--> $DIR/opt-in-copy.rs:19:15
2018-08-08 20:28:26 +08:00
|
LL | ButICant(CantCopyThisEither),
| ------------------ this field does not implement `Copy`
...
LL | impl Copy for IWantToCopyThisToo {}
2022-09-16 06:06:25 +08:00
| ^^^^^^^^^^^^^^^^^^
2018-08-08 20:28:26 +08:00
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0204`.