]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-params-in-different-spaces-1.stderr
Auto merge of #99443 - jam1garner:mips-virt-feature, r=nagisa
[rust.git] / src / test / ui / type / type-params-in-different-spaces-1.stderr
1 error[E0308]: mismatched types
2   --> $DIR/type-params-in-different-spaces-1.rs:5:17
3    |
4 LL | trait BrokenAdd: Copy + Add<Output=Self> {
5    | ---------------------------------------- expected type parameter
6 LL |     fn broken_add<T>(&self, rhs: T) -> Self {
7    |                   - found type parameter
8 LL |         *self + rhs
9    |                 ^^^ expected type parameter `Self`, found type parameter `T`
10    |
11    = note: expected type parameter `Self`
12               found type parameter `T`
13    = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound
14    = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0308`.