blob: e1b4cbb2ab3f46a2a8c7f4a0644ce77a8052a6b1 [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/type-params-in-different-spaces-3.rs:13:9
|
LL | fn test<X>(u: X) -> Self {
| ---- expected `Self` because of return type
LL | u //~ ERROR mismatched types
| ^ expected Self, found type parameter
|
= note: expected type `Self`
found type `X`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.