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

23 lines
667 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0567]: auto traits cannot have generic parameters
2018-12-25 09:56:47 -06:00
--> $DIR/auto-trait-validation.rs:3:1
2018-08-08 07:28:26 -05:00
|
LL | auto trait Generic<T> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^
error[E0568]: auto traits cannot have super traits
2018-12-25 09:56:47 -06:00
--> $DIR/auto-trait-validation.rs:5:1
2018-08-08 07:28:26 -05:00
|
LL | auto trait Bound : Copy {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0380]: auto traits cannot have methods or associated items
2018-12-25 09:56:47 -06:00
--> $DIR/auto-trait-validation.rs:7:1
2018-08-08 07:28:26 -05:00
|
LL | auto trait MyTrait { fn foo() {} }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 3 previous errors
Some errors occurred: E0380, E0567, E0568.
For more information about an error, try `rustc --explain E0380`.