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
700 B
Plaintext
Raw Normal View History

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