]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0277]: the trait bound `for<'b> <T as UnsafeCopy<'b, T>>::Item: Deref` is not satisfied |
f035d41b XL |
2 | --> $DIR/hr-associated-type-projection-1.rs:15:17 |
3 | | | |
4 | LL | trait UnsafeCopy<'a, T: Copy> | |
5 | | ---------- required by a bound in this | |
6 | LL | where | |
7 | LL | for<'b> <Self as UnsafeCopy<'b, T>>::Item: std::ops::Deref<Target = T>, | |
8 | | --------------------------- required by this bound in `UnsafeCopy` | |
9 | ... | |
10 | LL | type Item = T; | |
1b1a35ee | 11 | | ^ the trait `for<'b> Deref` is not implemented for `<T as UnsafeCopy<'b, T>>::Item` |
f035d41b XL |
12 | | |
13 | = help: the following implementations were found: | |
1b1a35ee XL |
14 | <&T as Deref> |
15 | <&mut T as Deref> | |
f035d41b | 16 | |
1b1a35ee | 17 | error[E0277]: the trait bound `<T as UnsafeCopy<'b, T>>::Item: Deref` is not satisfied |
f035d41b XL |
18 | --> $DIR/hr-associated-type-projection-1.rs:13:33 |
19 | | | |
20 | LL | impl<T: Copy + std::ops::Deref> UnsafeCopy<'_, T> for T { | |
1b1a35ee | 21 | | ^^^^^^^^^^^^^^^^^ the trait `Deref` is not implemented for `<T as UnsafeCopy<'b, T>>::Item` |
f035d41b XL |
22 | | |
23 | help: consider further restricting the associated type | |
24 | | | |
1b1a35ee XL |
25 | LL | impl<T: Copy + std::ops::Deref> UnsafeCopy<'_, T> for T where <T as UnsafeCopy<'b, T>>::Item: Deref { |
26 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
f035d41b XL |
27 | |
28 | error: aborting due to 2 previous errors | |
29 | ||
30 | For more information about this error, try `rustc --explain E0277`. |