fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0393]: the type parameter `Rhs` must be explicitly specified 2 --> $DIR/issue-22560.rs:9:23 3 | 4LL | / trait Sub<Rhs=Self> { 5LL | | type Output; 6LL | | } 7 | |_- type parameter `Rhs` must be specified for this 8LL | 9LL | type Test = dyn Add + Sub; 10 | ^^^ help: set the type parameter to the desired type: `Sub<Rhs>` 11 | 12 = note: because of the default `Self` reference, type parameters must be specified on object types 13 14error[E0393]: the type parameter `Rhs` must be explicitly specified 15 --> $DIR/issue-22560.rs:9:17 16 | 17LL | / trait Add<Rhs=Self> { 18LL | | type Output; 19LL | | } 20 | |_- type parameter `Rhs` must be specified for this 21... 22LL | type Test = dyn Add + Sub; 23 | ^^^ help: set the type parameter to the desired type: `Add<Rhs>` 24 | 25 = note: because of the default `Self` reference, type parameters must be specified on object types 26 27error[E0225]: only auto traits can be used as additional traits in a trait object 28 --> $DIR/issue-22560.rs:9:23 29 | 30LL | type Test = dyn Add + Sub; 31 | --- ^^^ 32 | | | 33 | | additional non-auto trait 34 | | trait alias used in trait object type (additional use) 35 | first non-auto trait 36 | trait alias used in trait object type (first use) 37 38error[E0191]: the value of the associated types `Output` (from trait `Add`), `Output` (from trait `Sub`) must be specified 39 --> $DIR/issue-22560.rs:9:17 40 | 41LL | type Output; 42 | ------------ `Output` defined here 43... 44LL | type Output; 45 | ------------ `Output` defined here 46... 47LL | type Test = dyn Add + Sub; 48 | ^^^ ^^^ associated type `Output` must be specified 49 | | 50 | associated type `Output` must be specified 51 | 52help: specify the associated types 53 | 54LL | type Test = dyn Add<Output = Type> + Sub<Output = Type>; 55 | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ 56 57error: aborting due to 4 previous errors 58 59Some errors have detailed explanations: E0191, E0225, E0393. 60For more information about an error, try `rustc --explain E0191`.