summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/macro-namespace-reserved-2.stderr
blob: b9effe7cf21f35f37356ae92f0eaa09c7a02df2c (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
error: can't use a procedural macro from the same crate that defines it
  --> $DIR/macro-namespace-reserved-2.rs:25:5
   |
LL |     my_macro!();
   |     ^^^^^^^^

error: can't use a procedural macro from the same crate that defines it
  --> $DIR/macro-namespace-reserved-2.rs:29:5
   |
LL |     crate::my_macro_attr!();
   |     ^^^^^^^^^^^^^^^^^^^^

error: expected macro, found attribute macro `crate::my_macro_attr`
  --> $DIR/macro-namespace-reserved-2.rs:29:5
   |
LL |     crate::my_macro_attr!();
   |     ^^^^^^^^^^^^^^^^^^^^ not a macro

error: can't use a procedural macro from the same crate that defines it
  --> $DIR/macro-namespace-reserved-2.rs:34:5
   |
LL |     crate::MyTrait!();
   |     ^^^^^^^^^^^^^^

error: expected macro, found derive macro `crate::MyTrait`
  --> $DIR/macro-namespace-reserved-2.rs:34:5
   |
LL |     crate::MyTrait!();
   |     ^^^^^^^^^^^^^^ not a macro

error: can't use a procedural macro from the same crate that defines it
  --> $DIR/macro-namespace-reserved-2.rs:42:3
   |
LL | #[my_macro_attr]
   |   ^^^^^^^^^^^^^

error: can't use a procedural macro from the same crate that defines it
  --> $DIR/macro-namespace-reserved-2.rs:44:3
   |
LL | #[MyTrait]
   |   ^^^^^^^

error: expected attribute, found derive macro `MyTrait`
  --> $DIR/macro-namespace-reserved-2.rs:44:3
   |
LL | #[MyTrait]
   |   ^^^^^^^ not an attribute

error: can't use a procedural macro from the same crate that defines it
  --> $DIR/macro-namespace-reserved-2.rs:53:10
   |
LL | #[derive(my_macro_attr)]
   |          ^^^^^^^^^^^^^

error: expected derive macro, found attribute macro `my_macro_attr`
  --> $DIR/macro-namespace-reserved-2.rs:53:10
   |
LL | #[derive(my_macro_attr)]
   |          ^^^^^^^^^^^^^ not a derive macro
   |
help: remove from the surrounding `derive()`
  --> $DIR/macro-namespace-reserved-2.rs:53:10
   |
LL | #[derive(my_macro_attr)]
   |          ^^^^^^^^^^^^^
   = help: add as non-Derive macro
           `#[my_macro_attr]`

error: can't use a procedural macro from the same crate that defines it
  --> $DIR/macro-namespace-reserved-2.rs:56:10
   |
LL | #[derive(MyTrait)]
   |          ^^^^^^^

error: can't use a procedural macro from the same crate that defines it
  --> $DIR/macro-namespace-reserved-2.rs:39:3
   |
LL | #[crate::my_macro]
   |   ^^^^^^^^^^^^^^^

error: expected attribute, found macro `crate::my_macro`
  --> $DIR/macro-namespace-reserved-2.rs:39:3
   |
LL | #[crate::my_macro]
   |   ^^^^^^^^^^^^^^^ not an attribute

error: can't use a procedural macro from the same crate that defines it
  --> $DIR/macro-namespace-reserved-2.rs:50:10
   |
LL | #[derive(crate::my_macro)]
   |          ^^^^^^^^^^^^^^^

error: expected derive macro, found macro `crate::my_macro`
  --> $DIR/macro-namespace-reserved-2.rs:50:10
   |
LL | #[derive(crate::my_macro)]
   |          ^^^^^^^^^^^^^^^ not a derive macro
   |
help: remove from the surrounding `derive()`
  --> $DIR/macro-namespace-reserved-2.rs:50:10
   |
LL | #[derive(crate::my_macro)]
   |          ^^^^^^^^^^^^^^^
   = help: add as non-Derive macro
           `#[crate::my_macro]`

error: cannot find macro `my_macro_attr` in this scope
  --> $DIR/macro-namespace-reserved-2.rs:28:5
   |
LL |     my_macro_attr!();
   |     ^^^^^^^^^^^^^
   |
   = note: `my_macro_attr` is in scope, but it is an attribute: `#[my_macro_attr]`

error: cannot find macro `MyTrait` in this scope
  --> $DIR/macro-namespace-reserved-2.rs:33:5
   |
LL |     MyTrait!();
   |     ^^^^^^^
   |
   = note: `MyTrait` is in scope, but it is a derive macro: `#[derive(MyTrait)]`

error: cannot find attribute `my_macro` in this scope
  --> $DIR/macro-namespace-reserved-2.rs:38:3
   |
LL | #[my_macro]
   |   ^^^^^^^^
   |
   = note: `my_macro` is in scope, but it is a function-like macro

error: cannot find derive macro `my_macro` in this scope
  --> $DIR/macro-namespace-reserved-2.rs:48:10
   |
LL | #[derive(my_macro)]
   |          ^^^^^^^^
   |
   = note: `my_macro` is in scope, but it is a function-like macro

error: cannot find derive macro `my_macro` in this scope
  --> $DIR/macro-namespace-reserved-2.rs:48:10
   |
LL | #[derive(my_macro)]
   |          ^^^^^^^^
   |
   = note: `my_macro` is in scope, but it is a function-like macro

error: aborting due to 20 previous errors