Update tests.
This commit is contained in:
parent
aea954b74d
commit
fd7c253acc
38 changed files with 1263 additions and 64 deletions
|
|
@ -1,3 +1,11 @@
|
|||
error[E0393]: the type parameter `Rhs` must be explicitly specified
|
||||
--> $DIR/issue-22560.rs:6:13
|
||||
|
|
||||
LL | Sub;
|
||||
| ^^^ 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
|
||||
--> $DIR/issue-22560.rs:3:13
|
||||
|
|
||||
|
|
@ -6,29 +14,29 @@ LL | type Test = Add +
|
|||
|
|
||||
= 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
|
||||
--> $DIR/issue-22560.rs:6:13
|
||||
|
|
||||
LL | Sub;
|
||||
| ^^^ 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
|
||||
--> $DIR/issue-22560.rs:6:13
|
||||
|
|
||||
LL | type Test = Add +
|
||||
| --- first non-auto trait
|
||||
...
|
||||
LL | Sub;
|
||||
| ^^^ non-auto additional trait
|
||||
| ^^^ additional non-auto trait
|
||||
|
||||
error[E0191]: the value of the associated type `Output` (from the trait `std::ops::Add`) must be specified
|
||||
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
|
||||
--> $DIR/issue-22560.rs:3:13
|
||||
|
|
||||
LL | type Test = Add +
|
||||
| _____________^
|
||||
| |_____________|
|
||||
| |
|
||||
LL | |
|
||||
LL | |
|
||||
LL | | Sub;
|
||||
| |_______________^ associated type `Output` must be specified
|
||||
| | ^
|
||||
| |_______________|
|
||||
| |_______________associated type `Output` must be specified
|
||||
| associated type `Output` must be specified
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@ error[E0225]: only auto traits can be used as additional traits in a trait objec
|
|||
--> $DIR/issue-32963.rs:8:25
|
||||
|
|
||||
LL | size_of_copy::<Misc+Copy>();
|
||||
| ^^^^ non-auto additional trait
|
||||
| ---- ^^^^ additional non-auto trait
|
||||
| |
|
||||
| first non-auto trait
|
||||
|
||||
error[E0277]: the trait bound `dyn Misc: std::marker::Copy` is not satisfied
|
||||
--> $DIR/issue-32963.rs:8:5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue