fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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