Files
rust/src/test/ui/auto-trait-validation.stderr

39 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0567]: auto traits cannot have generic parameters
--> $DIR/auto-trait-validation.rs:3:20
2018-08-08 14:28:26 +02:00
|
LL | auto trait Generic<T> {}
| ------- ^ cannot have this generic parameter
| |
| auto trait cannot have generic parameters
|
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
--> $DIR/auto-trait-validation.rs:5:20
2018-08-08 14:28:26 +02:00
|
LL | auto trait Bound : Copy {}
| ----- ^^^^ cannot have this super trait
| |
| auto trait cannot have super traits
|
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
--> $DIR/auto-trait-validation.rs:7:25
2018-08-08 14:28:26 +02:00
|
LL | auto trait MyTrait { fn foo() {} }
| ------- ^^^
| |
| 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`.