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