]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error: can't use a procedural macro from the same crate that defines it |
0731742a | 2 | --> $DIR/macro-namespace-reserved-2.rs:25:5 |
8faf50e0 | 3 | | |
532ac7d7 | 4 | LL | my_macro!(); |
b7449926 | 5 | | ^^^^^^^^ |
8faf50e0 XL |
6 | |
7 | error: can't use a procedural macro from the same crate that defines it | |
416331ca | 8 | --> $DIR/macro-namespace-reserved-2.rs:29:5 |
8faf50e0 | 9 | | |
416331ca XL |
10 | LL | crate::my_macro_attr!(); |
11 | | ^^^^^^^^^^^^^^^^^^^^ | |
8faf50e0 | 12 | |
416331ca XL |
13 | error: expected macro, found attribute macro `crate::my_macro_attr` |
14 | --> $DIR/macro-namespace-reserved-2.rs:29:5 | |
8faf50e0 | 15 | | |
416331ca XL |
16 | LL | crate::my_macro_attr!(); |
17 | | ^^^^^^^^^^^^^^^^^^^^ not a macro | |
8faf50e0 XL |
18 | |
19 | error: can't use a procedural macro from the same crate that defines it | |
416331ca | 20 | --> $DIR/macro-namespace-reserved-2.rs:34:5 |
8faf50e0 | 21 | | |
416331ca XL |
22 | LL | crate::MyTrait!(); |
23 | | ^^^^^^^^^^^^^^ | |
24 | ||
25 | error: expected macro, found derive macro `crate::MyTrait` | |
26 | --> $DIR/macro-namespace-reserved-2.rs:34:5 | |
27 | | | |
28 | LL | crate::MyTrait!(); | |
29 | | ^^^^^^^^^^^^^^ not a macro | |
8faf50e0 XL |
30 | |
31 | error: can't use a procedural macro from the same crate that defines it | |
416331ca | 32 | --> $DIR/macro-namespace-reserved-2.rs:42:3 |
8faf50e0 | 33 | | |
532ac7d7 | 34 | LL | #[my_macro_attr] |
b7449926 | 35 | | ^^^^^^^^^^^^^ |
8faf50e0 XL |
36 | |
37 | error: can't use a procedural macro from the same crate that defines it | |
416331ca | 38 | --> $DIR/macro-namespace-reserved-2.rs:44:3 |
8faf50e0 | 39 | | |
532ac7d7 | 40 | LL | #[MyTrait] |
b7449926 | 41 | | ^^^^^^^ |
8faf50e0 | 42 | |
416331ca XL |
43 | error: expected attribute, found derive macro `MyTrait` |
44 | --> $DIR/macro-namespace-reserved-2.rs:44:3 | |
8faf50e0 | 45 | | |
416331ca XL |
46 | LL | #[MyTrait] |
47 | | ^^^^^^^ not an attribute | |
8faf50e0 XL |
48 | |
49 | error: can't use a procedural macro from the same crate that defines it | |
dfeec247 | 50 | --> $DIR/macro-namespace-reserved-2.rs:53:10 |
8faf50e0 | 51 | | |
532ac7d7 | 52 | LL | #[derive(my_macro_attr)] |
8faf50e0 XL |
53 | | ^^^^^^^^^^^^^ |
54 | ||
416331ca | 55 | error: expected derive macro, found attribute macro `my_macro_attr` |
dfeec247 | 56 | --> $DIR/macro-namespace-reserved-2.rs:53:10 |
416331ca XL |
57 | | |
58 | LL | #[derive(my_macro_attr)] | |
59 | | ^^^^^^^^^^^^^ not a derive macro | |
60 | ||
8faf50e0 | 61 | error: can't use a procedural macro from the same crate that defines it |
dfeec247 | 62 | --> $DIR/macro-namespace-reserved-2.rs:56:10 |
8faf50e0 | 63 | | |
532ac7d7 | 64 | LL | #[derive(MyTrait)] |
8faf50e0 XL |
65 | | ^^^^^^^ |
66 | ||
416331ca XL |
67 | error: can't use a procedural macro from the same crate that defines it |
68 | --> $DIR/macro-namespace-reserved-2.rs:39:3 | |
69 | | | |
70 | LL | #[crate::my_macro] | |
71 | | ^^^^^^^^^^^^^^^ | |
72 | ||
73 | error: expected attribute, found macro `crate::my_macro` | |
74 | --> $DIR/macro-namespace-reserved-2.rs:39:3 | |
75 | | | |
76 | LL | #[crate::my_macro] | |
77 | | ^^^^^^^^^^^^^^^ not an attribute | |
78 | ||
79 | error: can't use a procedural macro from the same crate that defines it | |
dfeec247 | 80 | --> $DIR/macro-namespace-reserved-2.rs:50:10 |
416331ca XL |
81 | | |
82 | LL | #[derive(crate::my_macro)] | |
83 | | ^^^^^^^^^^^^^^^ | |
84 | ||
85 | error: expected derive macro, found macro `crate::my_macro` | |
dfeec247 | 86 | --> $DIR/macro-namespace-reserved-2.rs:50:10 |
416331ca XL |
87 | | |
88 | LL | #[derive(crate::my_macro)] | |
89 | | ^^^^^^^^^^^^^^^ not a derive macro | |
90 | ||
e1599b0c XL |
91 | error: cannot find macro `my_macro_attr` in this scope |
92 | --> $DIR/macro-namespace-reserved-2.rs:28:5 | |
93 | | | |
94 | LL | my_macro_attr!(); | |
95 | | ^^^^^^^^^^^^^ | |
94222f64 XL |
96 | | |
97 | = note: `my_macro_attr` is in scope, but it is an attribute: `#[my_macro_attr]` | |
e1599b0c XL |
98 | |
99 | error: cannot find macro `MyTrait` in this scope | |
100 | --> $DIR/macro-namespace-reserved-2.rs:33:5 | |
101 | | | |
102 | LL | MyTrait!(); | |
103 | | ^^^^^^^ | |
94222f64 XL |
104 | | |
105 | = note: `MyTrait` is in scope, but it is a derive macro: `#[derive(MyTrait)]` | |
e1599b0c XL |
106 | |
107 | error: cannot find attribute `my_macro` in this scope | |
416331ca XL |
108 | --> $DIR/macro-namespace-reserved-2.rs:38:3 |
109 | | | |
110 | LL | #[my_macro] | |
111 | | ^^^^^^^^ | |
94222f64 XL |
112 | | |
113 | = note: `my_macro` is in scope, but it is a function-like macro | |
416331ca XL |
114 | |
115 | error: cannot find derive macro `my_macro` in this scope | |
116 | --> $DIR/macro-namespace-reserved-2.rs:48:10 | |
117 | | | |
118 | LL | #[derive(my_macro)] | |
119 | | ^^^^^^^^ | |
94222f64 XL |
120 | | |
121 | = note: `my_macro` is in scope, but it is a function-like macro | |
416331ca | 122 | |
dfeec247 XL |
123 | error: cannot find derive macro `my_macro` in this scope |
124 | --> $DIR/macro-namespace-reserved-2.rs:48:10 | |
125 | | | |
126 | LL | #[derive(my_macro)] | |
127 | | ^^^^^^^^ | |
94222f64 XL |
128 | | |
129 | = note: `my_macro` is in scope, but it is a function-like macro | |
dfeec247 XL |
130 | |
131 | error: aborting due to 20 previous errors | |
8faf50e0 | 132 |