fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.7 KiB50 linesraw
1error[E0393]: the type parameter `Rhs` must be explicitly specified
2  --> $DIR/issue-22560.rs:6:13
3   |
4LL |             Sub;
5   |             ^^^ missing reference to `Rhs`
6   |
7   = note: because of the default `Self` reference, type parameters must be specified on object types
8
9error[E0393]: the type parameter `Rhs` must be explicitly specified
10  --> $DIR/issue-22560.rs:3:17
11   |
12LL | type Test = dyn Add +
13   |                 ^^^ missing reference to `Rhs`
14   |
15   = note: because of the default `Self` reference, type parameters must be specified on object types
16
17error[E0225]: only auto traits can be used as additional traits in a trait object
18  --> $DIR/issue-22560.rs:6:13
19   |
20LL | type Test = dyn Add +
21   |                 ---
22   |                 |
23   |                 first non-auto trait
24   |                 trait alias used in trait object type (first use)
25...
26LL |             Sub;
27   |             ^^^
28   |             |
29   |             additional non-auto trait
30   |             trait alias used in trait object type (additional use)
31
32error[E0191]: the value of the associated types `Output` (from the trait `std::ops::Add`), `Output` (from the trait `std::ops::Sub`) must be specified
33  --> $DIR/issue-22560.rs:3:13
34   |
35LL |   type Test = dyn Add +
36   |  _____________^
37   | |_____________|
38   | |
39LL | |
40LL | |
41LL | |             Sub;
42   | |               ^
43   | |_______________|
44   | |_______________associated type `Output` must be specified
45   |                 associated type `Output` must be specified
46
47error: aborting due to 4 previous errors
48
49Some errors have detailed explanations: E0191, E0225, E0393.
50For more information about an error, try `rustc --explain E0191`.