|
1 | 1 | error: cannot find derive macro `sample` in this scope |
2 | 2 | --> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:6:10 |
3 | 3 | | |
4 | | -LL | #[derive(sample)] |
5 | | - | ^^^^^^ consider moving the definition of `sample` before this call |
6 | | - | |
7 | | -note: a macro with the same name exists, but it appears later at here |
8 | | - --> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:3:14 |
9 | | - | |
10 | 4 | LL | macro_rules! sample { () => {} } |
11 | | - | ^^^^^^ |
| 5 | + | ------ `sample` exists, but a declarative macro cannot be used as a derive macro |
| 6 | +... |
| 7 | +LL | #[derive(sample)] |
| 8 | + | ^^^^^^ |
12 | 9 |
|
13 | 10 | error: cannot find attribute `sample` in this scope |
14 | 11 | --> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:5:3 |
15 | 12 | | |
16 | | -LL | #[sample] |
17 | | - | ^^^^^^ consider moving the definition of `sample` before this call |
18 | | - | |
19 | | -note: a macro with the same name exists, but it appears later at here |
20 | | - --> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:3:14 |
21 | | - | |
22 | 13 | LL | macro_rules! sample { () => {} } |
23 | | - | ^^^^^^ |
| 14 | + | ------ `sample` exists, but a declarative macro cannot be used as an attribute macro |
| 15 | +LL | |
| 16 | +LL | #[sample] |
| 17 | + | ^^^^^^ |
24 | 18 |
|
25 | 19 | error: cannot find derive macro `sample` in this scope |
26 | 20 | --> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:6:10 |
27 | 21 | | |
| 22 | +LL | macro_rules! sample { () => {} } |
| 23 | + | ------ `sample` exists, but a declarative macro cannot be used as a derive macro |
| 24 | +... |
28 | 25 | LL | #[derive(sample)] |
29 | | - | ^^^^^^ consider moving the definition of `sample` before this call |
| 26 | + | ^^^^^^ |
30 | 27 | | |
31 | | -note: a macro with the same name exists, but it appears later at here |
32 | | - --> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:3:14 |
33 | | - | |
34 | | -LL | macro_rules! sample { () => {} } |
35 | | - | ^^^^^^ |
36 | 28 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
37 | 29 |
|
38 | 30 | error: cannot find derive macro `sample` in this scope |
39 | 31 | --> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:6:10 |
40 | 32 | | |
| 33 | +LL | macro_rules! sample { () => {} } |
| 34 | + | ------ `sample` exists, but a declarative macro cannot be used as a derive macro |
| 35 | +... |
41 | 36 | LL | #[derive(sample)] |
42 | | - | ^^^^^^ consider moving the definition of `sample` before this call |
43 | | - | |
44 | | -note: a macro with the same name exists, but it appears later at here |
45 | | - --> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:3:14 |
| 37 | + | ^^^^^^ |
46 | 38 | | |
47 | | -LL | macro_rules! sample { () => {} } |
48 | | - | ^^^^^^ |
49 | 39 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
50 | 40 |
|
51 | 41 | error: aborting due to 4 previous errors |
|
0 commit comments