rust/src/test/ui/issues/issue-22560.stderr

51 lines
1.7 KiB
Plaintext
Raw Normal View History

2019-03-15 18:56:26 -05:00
error[E0393]: the type parameter `Rhs` must be explicitly specified
2019-03-30 17:06:09 -05:00
--> $DIR/issue-22560.rs:6:13
|
2019-03-30 17:06:09 -05:00
LL | Sub;
2019-03-15 18:56:26 -05:00
| ^^^ missing reference to `Rhs`
|
= note: because of the default `Self` reference, type parameters must be specified on object types
2019-03-15 18:56:26 -05:00
error[E0393]: the type parameter `Rhs` must be explicitly specified
2019-05-28 13:46:13 -05:00
--> $DIR/issue-22560.rs:3:17
|
2019-05-28 13:46:13 -05:00
LL | type Test = dyn Add +
| ^^^ 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
2019-04-22 11:35:37 -05:00
--> $DIR/issue-22560.rs:6:13
|
2019-05-28 13:46:13 -05:00
LL | type Test = dyn Add +
| ---
| |
| first non-auto trait
| trait alias used in trait object type (first use)
2019-03-30 17:06:09 -05:00
...
2018-02-22 18:42:32 -06:00
LL | Sub;
| ^^^
| |
| additional non-auto trait
| trait alias used in trait object type (additional use)
2019-03-30 17:06:09 -05:00
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
2019-04-22 11:35:37 -05:00
--> $DIR/issue-22560.rs:3:13
|
2019-05-28 13:46:13 -05:00
LL | type Test = dyn Add +
| _____________^
2019-03-30 17:06:09 -05:00
| |_____________|
| |
2019-03-09 06:03:44 -06:00
LL | |
LL | |
2018-02-22 18:42:32 -06:00
LL | | Sub;
2019-03-30 17:06:09 -05:00
| | ^
| |_______________|
| |_______________associated type `Output` must be specified
| associated type `Output` must be specified
error: aborting due to 4 previous errors
Some errors have detailed explanations: E0191, E0225, E0393.
2018-03-03 08:59:40 -06:00
For more information about an error, try `rustc --explain E0191`.