]>
Commit | Line | Data |
---|---|---|
60c5eb7d | 1 | error: traits in `#[derive(...)]` don't accept arguments |
0731742a | 2 | --> $DIR/malformed-derive-entry.rs:1:14 |
b7449926 XL |
3 | | |
4 | LL | #[derive(Copy(Bad))] | |
60c5eb7d | 5 | | ^^^^^ help: remove the arguments |
b7449926 | 6 | |
60c5eb7d XL |
7 | error: traits in `#[derive(...)]` don't accept values |
8 | --> $DIR/malformed-derive-entry.rs:6:14 | |
b7449926 XL |
9 | | |
10 | LL | #[derive(Copy="bad")] | |
60c5eb7d | 11 | | ^^^^^^ help: remove the value |
b7449926 | 12 | |
dc9dc135 | 13 | error: malformed `derive` attribute input |
60c5eb7d | 14 | --> $DIR/malformed-derive-entry.rs:11:1 |
b7449926 XL |
15 | | |
16 | LL | #[derive] | |
dc9dc135 | 17 | | ^^^^^^^^^ help: missing traits to be derived: `#[derive(Trait1, Trait2, ...)]` |
b7449926 | 18 | |
60c5eb7d XL |
19 | error[E0277]: the trait bound `Test1: std::clone::Clone` is not satisfied |
20 | --> $DIR/malformed-derive-entry.rs:1:10 | |
21 | | | |
22 | LL | #[derive(Copy(Bad))] | |
23 | | ^^^^ the trait `std::clone::Clone` is not implemented for `Test1` | |
ba9703b0 XL |
24 | | |
25 | ::: $SRC_DIR/libcore/marker.rs:LL:COL | |
26 | | | |
27 | LL | pub trait Copy: Clone { | |
28 | | ----- required by this bound in `std::marker::Copy` | |
74b04a01 XL |
29 | | |
30 | = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
60c5eb7d XL |
31 | |
32 | error[E0277]: the trait bound `Test2: std::clone::Clone` is not satisfied | |
33 | --> $DIR/malformed-derive-entry.rs:6:10 | |
34 | | | |
35 | LL | #[derive(Copy="bad")] | |
36 | | ^^^^ the trait `std::clone::Clone` is not implemented for `Test2` | |
ba9703b0 XL |
37 | | |
38 | ::: $SRC_DIR/libcore/marker.rs:LL:COL | |
39 | | | |
40 | LL | pub trait Copy: Clone { | |
41 | | ----- required by this bound in `std::marker::Copy` | |
74b04a01 XL |
42 | | |
43 | = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
60c5eb7d XL |
44 | |
45 | error: aborting due to 5 previous errors | |
b7449926 | 46 | |
60c5eb7d | 47 | For more information about this error, try `rustc --explain E0277`. |