]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0271]: type mismatch resolving `<T as Deref>::Target == T` |
136023e0 | 2 | --> $DIR/issue-68656-unsized-values.rs:15:5 |
f035d41b XL |
3 | | |
4 | LL | type Item<'a>: std::ops::Deref<Target = T>; | |
29967ef6 | 5 | | ---------- required by this bound in `UnsafeCopy::Item` |
f035d41b XL |
6 | ... |
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 | |
11 | | | |
12 | = note: expected type parameter `T` | |
1b1a35ee | 13 | found associated type `<T as Deref>::Target` |
f035d41b XL |
14 | help: consider further restricting this bound |
15 | | | |
1b1a35ee XL |
16 | LL | impl<T: Copy + std::ops::Deref + Deref<Target = T>> UnsafeCopy<T> for T { |
17 | | ^^^^^^^^^^^^^^^^^^^ | |
f035d41b | 18 | |
136023e0 | 19 | error: aborting due to previous error |
f035d41b XL |
20 | |
21 | For more information about this error, try `rustc --explain E0271`. |