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-21950.rs:10:25 3 | 4LL | / trait Add<Rhs=Self> { 5LL | | type Output; 6LL | | } 7 | |_- type parameter `Rhs` must be specified for this 8... 9LL | let x = &10 as &dyn Add; 10 | ^^^ help: set the type parameter to the desired type: `Add<Rhs>` 11 | 12 = note: because of the default `Self` reference, type parameters must be specified on object types 13 14error[E0191]: the value of the associated type `Output` (from trait `Add`) must be specified 15 --> $DIR/issue-21950.rs:10:25 16 | 17LL | type Output; 18 | ------------ `Output` defined here 19... 20LL | let x = &10 as &dyn Add; 21 | ^^^ help: specify the associated type: `Add<Output = Type>` 22 23error: aborting due to 2 previous errors 24 25Some errors have detailed explanations: E0191, E0393. 26For more information about an error, try `rustc --explain E0191`.