rust/src/test/ui/auto-trait-validation.stderr
2019-04-18 13:29:28 -04:00

22 lines
626 B
Plaintext

error[E0567]: auto traits cannot have generic parameters
--> $DIR/auto-trait-validation.rs:3:1
|
LL | auto trait Generic<T> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^
error[E0568]: auto traits cannot have super traits
--> $DIR/auto-trait-validation.rs:5:1
|
LL | auto trait Bound : Copy {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0380]: auto traits cannot have methods or associated items
--> $DIR/auto-trait-validation.rs:7:1
|
LL | auto trait MyTrait { fn foo() {} }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0380`.