]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-68641-check-gat-bounds.stderr
Rollup merge of #82308 - estebank:issue-82290, r=lcnr
[rust.git] / src / test / ui / generic-associated-types / issue-68641-check-gat-bounds.stderr
1 warning: the feature `generic_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes
2   --> $DIR/issue-68641-check-gat-bounds.rs:3:12
3    |
4 LL | #![feature(generic_associated_types)]
5    |            ^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `#[warn(incomplete_features)]` on by default
8    = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
9
10 error[E0277]: the trait bound `T: Copy` is not satisfied
11   --> $DIR/issue-68641-check-gat-bounds.rs:15:5
12    |
13 LL |     type Item<'a>: Copy;
14    |                    ---- required by this bound in `UnsafeCopy::Item`
15 ...
16 LL |     type Item<'a> = T;
17    |     ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T`
18    |
19 help: consider restricting type parameter `T`
20    |
21 LL | impl<T: Copy> UnsafeCopy for T {
22    |       ^^^^^^
23
24 error: aborting due to previous error; 1 warning emitted
25
26 For more information about this error, try `rustc --explain E0277`.