]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type/type-params-in-different-spaces-1.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / type / type-params-in-different-spaces-1.stderr
CommitLineData
b7449926 1error[E0308]: mismatched types
0731742a 2 --> $DIR/type-params-in-different-spaces-1.rs:5:17
b7449926 3 |
60c5eb7d
XL
4LL | / trait BrokenAdd: Copy + Add<Output=Self> {
5LL | | fn broken_add<T>(&self, rhs: T) -> Self {
6 | | - found type parameter
7LL | | *self + rhs
8 | | ^^^ expected type parameter `Self`, found type parameter `T`
9LL | |
10... |
11LL | | }
12LL | | }
13 | |_- expected type parameter
b7449926 14 |
60c5eb7d
XL
15 = note: expected type parameter `Self`
16 found type parameter `T`
e1599b0c
XL
17 = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound
18 = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
b7449926
XL
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0308`.