]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-68641-check-gat-bounds.stderr
Rollup merge of #86764 - estebank:issue-86756, r=pnkfelix
[rust.git] / src / test / ui / generic-associated-types / issue-68641-check-gat-bounds.stderr
1 error[E0277]: the trait bound `T: Copy` is not satisfied
2   --> $DIR/issue-68641-check-gat-bounds.rs:14:5
3    |
4 LL |     type Item<'a>: Copy;
5    |                    ---- required by this bound in `UnsafeCopy::Item`
6 ...
7 LL |     type Item<'a> = T;
8    |     ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T`
9    |
10 help: consider restricting type parameter `T`
11    |
12 LL | impl<T: std::marker::Copy> UnsafeCopy for T {
13    |       ^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.