2019-12-05 12:53:56 +00:00
|
|
|
error: traits in `#[derive(...)]` don't accept arguments
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/malformed-derive-entry.rs:1:14
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #[derive(Copy(Bad))]
|
2019-12-05 12:53:56 +00:00
|
|
|
| ^^^^^ help: remove the arguments
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-12-05 12:53:56 +00:00
|
|
|
error: traits in `#[derive(...)]` don't accept values
|
|
|
|
--> $DIR/malformed-derive-entry.rs:6:14
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #[derive(Copy="bad")]
|
2019-12-05 12:53:56 +00:00
|
|
|
| ^^^^^^ help: remove the value
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-05-22 00:47:23 +00:00
|
|
|
error: malformed `derive` attribute input
|
2019-12-05 12:53:56 +00:00
|
|
|
--> $DIR/malformed-derive-entry.rs:11:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #[derive]
|
2020-11-14 11:47:14 +00:00
|
|
|
| ^^^^^^^^^ help: must be of the form: `#[derive(Trait1, Trait2, ...)]`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
error[E0277]: the trait bound `Test1: Clone` is not satisfied
|
2019-12-05 12:53:56 +00:00
|
|
|
--> $DIR/malformed-derive-entry.rs:1:10
|
|
|
|
|
|
|
|
|
LL | #[derive(Copy(Bad))]
|
2020-09-02 07:40:56 +00:00
|
|
|
| ^^^^ the trait `Clone` is not implemented for `Test1`
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `Copy`
|
|
|
|
--> $SRC_DIR/core/src/marker.rs:LL:COL
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-03-31 14:58:45 +00:00
|
|
|
help: consider annotating `Test1` with `#[derive(Clone)]`
|
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + #[derive(Clone)]
|
|
|
|
LL | struct Test1;
|
2022-03-31 14:58:45 +00:00
|
|
|
|
|
2019-12-05 12:53:56 +00:00
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
error[E0277]: the trait bound `Test2: Clone` is not satisfied
|
2019-12-05 12:53:56 +00:00
|
|
|
--> $DIR/malformed-derive-entry.rs:6:10
|
|
|
|
|
|
|
|
|
LL | #[derive(Copy="bad")]
|
2020-09-02 07:40:56 +00:00
|
|
|
| ^^^^ the trait `Clone` is not implemented for `Test2`
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `Copy`
|
|
|
|
--> $SRC_DIR/core/src/marker.rs:LL:COL
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-03-31 14:58:45 +00:00
|
|
|
help: consider annotating `Test2` with `#[derive(Clone)]`
|
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + #[derive(Clone)]
|
|
|
|
LL | struct Test2;
|
2022-03-31 14:58:45 +00:00
|
|
|
|
|
2019-12-05 12:53:56 +00:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-12-05 12:53:56 +00:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|