]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-types/hr-associated-type-projection-1.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / associated-types / hr-associated-type-projection-1.stderr
CommitLineData
1b1a35ee 1error[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 |
4LL | trait UnsafeCopy<'a, T: Copy>
5 | ---------- required by a bound in this
6LL | where
7LL | for<'b> <Self as UnsafeCopy<'b, T>>::Item: std::ops::Deref<Target = T>,
8 | --------------------------- required by this bound in `UnsafeCopy`
9...
10LL | 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 17error[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 |
20LL | 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 |
23help: consider further restricting the associated type
24 |
1b1a35ee
XL
25LL | impl<T: Copy + std::ops::Deref> UnsafeCopy<'_, T> for T where <T as UnsafeCopy<'b, T>>::Item: Deref {
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f035d41b
XL
27
28error: aborting due to 2 previous errors
29
30For more information about this error, try `rustc --explain E0277`.