blob: cd3750344dda126094b8cb9f69aac27f10c3bdf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
error[E0308]: mismatched types
--> $DIR/issue-88360.rs:13:9
|
LL | trait SuperTrait<T>
| - 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`
| help: consider borrowing here: `&*self.test()`
|
= note: expected reference `&T`
found type parameter `T`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.
|