]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type/type-params-in-different-spaces-3.stderr
Update unsuspicious file list
[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 3 |
064997fb
FG
4LL | trait Tr : Sized {
5 | ---------------- expected type parameter
6LL | fn test<X>(u: X) -> Self {
7 | - ---- expected `Self` because of return type
8 | |
9 | found type parameter
10LL | u
11 | ^ expected type parameter `Self`, found type parameter `X`
b7449926 12 |
60c5eb7d
XL
13 = note: expected type parameter `Self`
14 found type parameter `X`
e1599b0c
XL
15 = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound
16 = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
b7449926
XL
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0308`.