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