1 error: traits in `#[derive(...)]` don't accept arguments
2 --> $DIR/malformed-derive-entry.rs:1:14
4 LL | #[derive(Copy(Bad))]
5 | ^^^^^ help: remove the arguments
7 error: traits in `#[derive(...)]` don't accept values
8 --> $DIR/malformed-derive-entry.rs:6:14
10 LL | #[derive(Copy="bad")]
11 | ^^^^^^ help: remove the value
13 error: malformed `derive` attribute input
14 --> $DIR/malformed-derive-entry.rs:11:1
17 | ^^^^^^^^^ help: must be of the form: `#[derive(Trait1, Trait2, ...)]`
19 error[E0277]: the trait bound `Test1: Clone` is not satisfied
20 --> $DIR/malformed-derive-entry.rs:1:10
22 LL | #[derive(Copy(Bad))]
23 | ^^^^ the trait `Clone` is not implemented for `Test1`
25 note: required by a bound in `Copy`
26 --> $SRC_DIR/core/src/marker.rs:LL:COL
28 LL | pub trait Copy: Clone {
29 | ^^^^^ required by this bound in `Copy`
30 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
31 help: consider annotating `Test1` with `#[derive(Clone)]`
36 error[E0277]: the trait bound `Test2: Clone` is not satisfied
37 --> $DIR/malformed-derive-entry.rs:6:10
39 LL | #[derive(Copy="bad")]
40 | ^^^^ the trait `Clone` is not implemented for `Test2`
42 note: required by a bound in `Copy`
43 --> $SRC_DIR/core/src/marker.rs:LL:COL
45 LL | pub trait Copy: Clone {
46 | ^^^^^ required by this bound in `Copy`
47 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
48 help: consider annotating `Test2` with `#[derive(Clone)]`
53 error: aborting due to 5 previous errors
55 For more information about this error, try `rustc --explain E0277`.