about summary refs log tree commit diff
path: root/tests/ui/generic-associated-types/issue-88360.stderr
blob: 488e50d2843bf4c4eb8ea98a7fd0220e6c25cfc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error[E0308]: mismatched types
  --> $DIR/issue-88360.rs:16:9
   |
LL | trait SuperTrait<T>
   |                  - found this type parameter
...
LL |     fn copy(&self) -> Self::Gat<'_> where T: Copy {
   |                       ------------- expected `&T` because of return type
LL |         *self.test()
   |         ^^^^^^^^^^^^ expected `&T`, found type parameter `T`
   |
   = note:   expected reference `&_`
           found type parameter `_`
help: consider removing deref here
   |
LL -         *self.test()
LL +         self.test()
   |

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.