fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: traits in `#[derive(...)]` don't accept arguments 2 --> $DIR/malformed-derive-entry.rs:1:14 3 | 4LL | #[derive(Copy(Bad))] 5 | ^^^^^ help: remove the arguments 6 7error: traits in `#[derive(...)]` don't accept values 8 --> $DIR/malformed-derive-entry.rs:6:14 9 | 10LL | #[derive(Copy="bad")] 11 | ^^^^^^ help: remove the value 12 13error: malformed `derive` attribute input 14 --> $DIR/malformed-derive-entry.rs:11:1 15 | 16LL | #[derive] 17 | ^^^^^^^^^ help: must be of the form: `#[derive(Trait1, Trait2, ...)]` 18 19error[E0277]: the trait bound `Test1: Clone` is not satisfied 20 --> $DIR/malformed-derive-entry.rs:1:10 21 | 22LL | #[derive(Copy(Bad))] 23 | ^^^^ the trait `Clone` is not implemented for `Test1` 24 | 25note: required by a bound in `Copy` 26 --> $SRC_DIR/core/src/marker.rs:LL:COL 27 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) 28help: consider annotating `Test1` with `#[derive(Clone)]` 29 | 30LL + #[derive(Clone)] 31LL | struct Test1; 32 | 33 34error[E0277]: the trait bound `Test2: Clone` is not satisfied 35 --> $DIR/malformed-derive-entry.rs:6:10 36 | 37LL | #[derive(Copy="bad")] 38 | ^^^^ the trait `Clone` is not implemented for `Test2` 39 | 40note: required by a bound in `Copy` 41 --> $SRC_DIR/core/src/marker.rs:LL:COL 42 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) 43help: consider annotating `Test2` with `#[derive(Clone)]` 44 | 45LL + #[derive(Clone)] 46LL | struct Test2; 47 | 48 49error: aborting due to 5 previous errors 50 51For more information about this error, try `rustc --explain E0277`.