]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type/type-params-in-different-spaces-3.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / type / type-params-in-different-spaces-3.stderr
CommitLineData
b7449926 1error[E0308]: mismatched types
0731742a 2 --> $DIR/type-params-in-different-spaces-3.rs:3:9
b7449926
XL
3 |
4LL | fn test<X>(u: X) -> Self {
5 | ---- expected `Self` because of return type
532ac7d7 6LL | u
e1599b0c 7 | ^ expected type parameter, found a different type parameter
b7449926
XL
8 |
9 = note: expected type `Self`
10 found type `X`
e1599b0c
XL
11 = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound
12 = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
b7449926
XL
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0308`.