2018-08-08 12:28:26 +00:00
|
|
|
error[E0567]: auto traits cannot have generic parameters
|
2024-02-07 02:42:01 +00:00
|
|
|
--> $DIR/auto-trait-validation.rs:6:19
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | auto trait Generic<T> {}
|
2020-03-11 00:59:32 +00:00
|
|
|
| -------^^^ help: remove the parameters
|
2020-03-06 18:55:21 +00:00
|
|
|
| |
|
|
|
|
| auto trait cannot have generic parameters
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2021-10-03 15:58:10 +00:00
|
|
|
error[E0568]: auto traits cannot have super traits or lifetime bounds
|
2024-02-07 02:42:01 +00:00
|
|
|
--> $DIR/auto-trait-validation.rs:8:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | auto trait Bound : Copy {}
|
2021-10-03 15:58:10 +00:00
|
|
|
| -----^^^^^^^ help: remove the super traits or lifetime bounds
|
2020-03-06 18:55:21 +00:00
|
|
|
| |
|
2023-02-25 13:53:42 +00:00
|
|
|
| auto traits cannot have super traits or lifetime bounds
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2021-10-03 15:58:10 +00:00
|
|
|
error[E0568]: auto traits cannot have super traits or lifetime bounds
|
2024-02-07 02:42:01 +00:00
|
|
|
--> $DIR/auto-trait-validation.rs:10:25
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2021-10-03 15:58:10 +00:00
|
|
|
LL | auto trait LifetimeBound : 'static {}
|
|
|
|
| -------------^^^^^^^^^^ help: remove the super traits or lifetime bounds
|
2020-03-06 18:55:21 +00:00
|
|
|
| |
|
2023-02-25 13:53:42 +00:00
|
|
|
| auto traits cannot have super traits or lifetime bounds
|
2021-10-03 15:58:10 +00:00
|
|
|
|
|
|
|
error[E0380]: auto traits cannot have associated items
|
2024-02-07 02:42:01 +00:00
|
|
|
--> $DIR/auto-trait-validation.rs:12:25
|
2021-10-03 15:58:10 +00:00
|
|
|
|
|
|
|
|
LL | auto trait MyTrait { fn foo() {} }
|
|
|
|
| ------- ---^^^-----
|
|
|
|
| | |
|
|
|
|
| | help: remove these associated items
|
2023-02-25 13:53:42 +00:00
|
|
|
| auto traits cannot have associated items
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2021-10-03 15:58:10 +00:00
|
|
|
error: aborting due to 4 previous errors
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-08 11:51:58 +00:00
|
|
|
Some errors have detailed explanations: E0380, E0567, E0568.
|
2019-10-07 12:08:26 +00:00
|
|
|
For more information about an error, try `rustc --explain E0380`.
|