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