rust/tests/ui/generic-associated-types/issue-88360.stderr

23 lines
657 B
Plaintext

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`.