]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/issue-88360.stderr
Port pgo.sh to Python
[rust.git] / tests / ui / generic-associated-types / issue-88360.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-88360.rs:13:9
3    |
4 LL | trait SuperTrait<T>
5    |                  - this type parameter
6 ...
7 LL |     fn copy(&self) -> Self::Gat<'_> where T: Copy {
8    |                       ------------- expected `&T` because of return type
9 LL |         *self.test()
10    |         ^^^^^^^^^^^^
11    |         |
12    |         expected `&T`, found type parameter `T`
13    |         help: consider borrowing here: `&*self.test()`
14    |
15    = note:   expected reference `&T`
16            found type parameter `T`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0308`.