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 | macro_rules! sample { () => {} }
5
+ | ------ `sample` exists, but is not an derive macro
6
+ ...
4
7
LL | #[derive(sample)]
5
- | ^^^^^^ consider moving the definition of `sample` before this call
8
+ | ^^^^^^
6
9
|
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
8
11
--> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:3:14
9
12
|
10
13
LL | macro_rules! sample { () => {} }
@@ -13,10 +16,13 @@ LL | macro_rules! sample { () => {} }
13
16
error: cannot find attribute `sample` in this scope
14
17
--> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:5:3
15
18
|
19
+ LL | macro_rules! sample { () => {} }
20
+ | ------ `sample` exists, but is not an attribute macro
21
+ LL |
16
22
LL | #[sample]
17
- | ^^^^^^ consider moving the definition of `sample` before this call
23
+ | ^^^^^^
18
24
|
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
20
26
--> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:3:14
21
27
|
22
28
LL | macro_rules! sample { () => {} }
@@ -25,10 +31,13 @@ LL | macro_rules! sample { () => {} }
25
31
error: cannot find derive macro `sample` in this scope
26
32
--> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:6:10
27
33
|
34
+ LL | macro_rules! sample { () => {} }
35
+ | ------ `sample` exists, but is not an derive macro
36
+ ...
28
37
LL | #[derive(sample)]
29
- | ^^^^^^ consider moving the definition of `sample` before this call
38
+ | ^^^^^^
30
39
|
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
32
41
--> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:3:14
33
42
|
34
43
LL | macro_rules! sample { () => {} }
@@ -38,10 +47,13 @@ LL | macro_rules! sample { () => {} }
38
47
error: cannot find derive macro `sample` in this scope
39
48
--> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:6:10
40
49
|
50
+ LL | macro_rules! sample { () => {} }
51
+ | ------ `sample` exists, but is not an derive macro
52
+ ...
41
53
LL | #[derive(sample)]
42
- | ^^^^^^ consider moving the definition of `sample` before this call
54
+ | ^^^^^^
43
55
|
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
45
57
--> $DIR/macro-rules-as-derive-or-attr-issue-132928.rs:3:14
46
58
|
47
59
LL | macro_rules! sample { () => {} }
0 commit comments