1 error[E0271]: type mismatch resolving `<T as Deref>::Target == T`
2 --> $DIR/issue-68656-unsized-values.rs:15:5
4 LL | type Item<'a>: std::ops::Deref<Target = T>;
5 | ---------- required by this bound in `UnsafeCopy::Item`
7 LL | impl<T: Copy + std::ops::Deref> UnsafeCopy<T> for T {
8 | - this type parameter
9 LL | type Item<'a> = T;
10 | ^^^^^^^^^^^^^^^^^^ expected type parameter `T`, found associated type
12 = note: expected type parameter `T`
13 found associated type `<T as Deref>::Target`
14 help: consider further restricting this bound
16 LL | impl<T: Copy + std::ops::Deref + Deref<Target = T>> UnsafeCopy<T> for T {
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0271`.