summaryrefslogtreecommitdiffstats
path: root/tests/ui/malformed/malformed-derive-entry.stderr
blob: 6ff6fbabb4a5f3ac04ccdaae843f7b9a233310e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
error: traits in `#[derive(...)]` don't accept arguments
  --> $DIR/malformed-derive-entry.rs:1:14
   |
LL | #[derive(Copy(Bad))]
   |              ^^^^^ help: remove the arguments

error: traits in `#[derive(...)]` don't accept values
  --> $DIR/malformed-derive-entry.rs:6:14
   |
LL | #[derive(Copy="bad")]
   |              ^^^^^^ help: remove the value

error: malformed `derive` attribute input
  --> $DIR/malformed-derive-entry.rs:11:1
   |
LL | #[derive]
   | ^^^^^^^^^ help: must be of the form: `#[derive(Trait1, Trait2, ...)]`

error[E0277]: the trait bound `Test1: Clone` is not satisfied
  --> $DIR/malformed-derive-entry.rs:1:10
   |
LL | #[derive(Copy(Bad))]
   |          ^^^^ the trait `Clone` is not implemented for `Test1`
   |
note: required by a bound in `Copy`
  --> $SRC_DIR/core/src/marker.rs:LL:COL
   = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `Test1` with `#[derive(Clone)]`
   |
LL | #[derive(Clone)]
   |

error[E0277]: the trait bound `Test2: Clone` is not satisfied
  --> $DIR/malformed-derive-entry.rs:6:10
   |
LL | #[derive(Copy="bad")]
   |          ^^^^ the trait `Clone` is not implemented for `Test2`
   |
note: required by a bound in `Copy`
  --> $SRC_DIR/core/src/marker.rs:LL:COL
   = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `Test2` with `#[derive(Clone)]`
   |
LL | #[derive(Clone)]
   |

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0277`.