2018-08-08 14:28:26 +02:00
|
|
|
error[E0567]: auto traits cannot have generic parameters
|
2020-03-06 10:55:21 -08:00
|
|
|
--> $DIR/auto-trait-validation.rs:3:20
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
|
LL | auto trait Generic<T> {}
|
2020-03-06 10:55:21 -08:00
|
|
|
| ------- ^ cannot have this generic parameter
|
|
|
|
|
| |
|
|
|
|
|
| auto trait cannot have generic parameters
|
2020-03-06 11:45:00 -08:00
|
|
|
|
|
|
|
|
|
help: remove the parameters for the auto trait to be valid
|
|
|
|
|
|
|
|
|
|
|
LL | auto trait Generic {}
|
|
|
|
|
| --
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
error[E0568]: auto traits cannot have super traits
|
2020-03-06 10:55:21 -08:00
|
|
|
--> $DIR/auto-trait-validation.rs:5:20
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
|
LL | auto trait Bound : Copy {}
|
2020-03-06 10:55:21 -08:00
|
|
|
| ----- ^^^^ cannot have this super trait
|
|
|
|
|
| |
|
|
|
|
|
| auto trait cannot have super traits
|
2020-03-06 11:45:00 -08:00
|
|
|
|
|
|
|
|
|
help: remove the super traits for the auto trait to be valid
|
|
|
|
|
|
|
|
|
|
|
LL | auto trait Bound {}
|
|
|
|
|
| --
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
error[E0380]: auto traits cannot have methods or associated items
|
2020-03-06 10:55:21 -08:00
|
|
|
--> $DIR/auto-trait-validation.rs:7:25
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
|
LL | auto trait MyTrait { fn foo() {} }
|
2020-03-06 10:55:21 -08:00
|
|
|
| ------- ^^^
|
|
|
|
|
| |
|
|
|
|
|
| auto trait cannot have items
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
2019-10-08 13:51:58 +02:00
|
|
|
Some errors have detailed explanations: E0380, E0567, E0568.
|
2019-10-07 14:08:26 +02:00
|
|
|
For more information about an error, try `rustc --explain E0380`.
|