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