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