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