]> git.lizzy.rs Git - rust.git/blob - tests/ui/opt-in-copy.stderr
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / ui / opt-in-copy.stderr
1 error[E0204]: the trait `Copy` may not be implemented for this type
2   --> $DIR/opt-in-copy.rs:7:15
3    |
4 LL |     but_i_cant: CantCopyThis,
5    |     ------------------------ this field does not implement `Copy`
6 ...
7 LL | impl Copy for IWantToCopyThis {}
8    |               ^^^^^^^^^^^^^^^
9
10 error[E0204]: the trait `Copy` may not be implemented for this type
11   --> $DIR/opt-in-copy.rs:19:15
12    |
13 LL |     ButICant(CantCopyThisEither),
14    |              ------------------ this field does not implement `Copy`
15 ...
16 LL | impl Copy for IWantToCopyThisToo {}
17    |               ^^^^^^^^^^^^^^^^^^
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0204`.