]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-params-in-different-spaces-3.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / type / type-params-in-different-spaces-3.stderr
1 error[E0308]: mismatched types
2   --> $DIR/type-params-in-different-spaces-3.rs:13:9
3    |
4 LL |     fn test<X>(u: X) -> Self {
5    |                         ---- expected `Self` because of return type
6 LL |         u   //~ ERROR mismatched types
7    |         ^ expected Self, found type parameter
8    |
9    = note: expected type `Self`
10               found type `X`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.