2017-12-10 22:47:55 +03:00
|
|
|
error[E0393]: the type parameter `RHS` must be explicitly specified
|
|
|
|
--> $DIR/issue-22560.rs:15:13
|
|
|
|
|
|
|
|
|
15 | type Test = Add +
|
|
|
|
| ^^^ missing reference to `RHS`
|
|
|
|
|
|
|
|
|
= note: because of the default `Self` reference, type parameters must be specified on object types
|
|
|
|
|
|
|
|
error[E0393]: the type parameter `RHS` must be explicitly specified
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/issue-22560.rs:18:13
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
18 | Sub;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^ missing reference to `RHS`
|
|
|
|
|
|
|
|
|
= note: because of the default `Self` reference, type parameters must be specified on object types
|
|
|
|
|
|
|
|
error[E0225]: only auto traits can be used as additional traits in a trait object
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/issue-22560.rs:18:13
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
18 | Sub;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^ non-auto additional trait
|
|
|
|
|
|
|
|
error[E0191]: the value of the associated type `Output` (from the trait `std::ops::Add`) must be specified
|
|
|
|
--> $DIR/issue-22560.rs:15:13
|
|
|
|
|
|
|
|
|
15 | type Test = Add +
|
|
|
|
| _____________^
|
|
|
|
16 | | //~^ ERROR E0393
|
2017-12-10 23:29:24 +03:00
|
|
|
17 | | //~| ERROR E0191
|
|
|
|
18 | | Sub;
|
2017-12-10 22:47:55 +03:00
|
|
|
| |_______________^ missing associated type `Output` value
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|