11error: cannot find derive macro `sample` in this scope
22 --> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:6:10
33 |
4+ LL | macro_rules! sample { () => {} }
5+ | ------ `sample` exists, but is not an derive macro
6+ ...
47LL | #[derive(sample)]
5- | ^^^^^^ consider moving the definition of `sample` before this call
8+ | ^^^^^^
69 |
7- note: a macro with the same name exists, but it appears later at here
10+ help: `macro_rules!` macros cannot be used as derive macros
811 --> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:3:14
912 |
1013LL | macro_rules! sample { () => {} }
@@ -13,10 +16,13 @@ LL | macro_rules! sample { () => {} }
1316error: cannot find attribute `sample` in this scope
1417 --> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:5:3
1518 |
19+ LL | macro_rules! sample { () => {} }
20+ | ------ `sample` exists, but is not an attribute macro
21+ LL |
1622LL | #[sample]
17- | ^^^^^^ consider moving the definition of `sample` before this call
23+ | ^^^^^^
1824 |
19- note: a macro with the same name exists, but it appears later at here
25+ help: `macro_rules!` macros cannot be used as attribute macros
2026 --> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:3:14
2127 |
2228LL | macro_rules! sample { () => {} }
@@ -25,10 +31,13 @@ LL | macro_rules! sample { () => {} }
2531error: cannot find derive macro `sample` in this scope
2632 --> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:6:10
2733 |
34+ LL | macro_rules! sample { () => {} }
35+ | ------ `sample` exists, but is not an derive macro
36+ ...
2837LL | #[derive(sample)]
29- | ^^^^^^ consider moving the definition of `sample` before this call
38+ | ^^^^^^
3039 |
31- note: a macro with the same name exists, but it appears later at here
40+ help: `macro_rules!` macros cannot be used as derive macros
3241 --> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:3:14
3342 |
3443LL | macro_rules! sample { () => {} }
@@ -38,10 +47,13 @@ LL | macro_rules! sample { () => {} }
3847error: cannot find derive macro `sample` in this scope
3948 --> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:6:10
4049 |
50+ LL | macro_rules! sample { () => {} }
51+ | ------ `sample` exists, but is not an derive macro
52+ ...
4153LL | #[derive(sample)]
42- | ^^^^^^ consider moving the definition of `sample` before this call
54+ | ^^^^^^
4355 |
44- note: a macro with the same name exists, but it appears later at here
56+ help: `macro_rules!` macros cannot be used as derive macros
4557 --> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:3:14
4658 |
4759LL | macro_rules! sample { () => {} }
0 commit comments