1 error[E0659]: `m` is ambiguous
2 --> $DIR/restricted-shadowing-legacy.rs:101:13
8 | ---------- in this macro invocation
10 = note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
11 note: `m` could refer to the macro defined here
12 --> $DIR/restricted-shadowing-legacy.rs:88:9
14 LL | macro_rules! m { () => { Right } }
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 | ---------- in this macro invocation
19 note: `m` could also refer to the macro defined here
20 --> $DIR/restricted-shadowing-legacy.rs:97:9
22 LL | macro_rules! m { () => {} }
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 | ---------- in this macro invocation
27 = note: this error originates in the macro `gen_gen_inner_invoc` (in Nightly builds, run with -Z macro-backtrace for more info)
29 error[E0659]: `m` is ambiguous
30 --> $DIR/restricted-shadowing-legacy.rs:139:42
32 LL | macro_rules! gen_invoc { () => { m!() } }
36 | ---------- in this macro invocation
38 = note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
39 note: `m` could refer to the macro defined here
40 --> $DIR/restricted-shadowing-legacy.rs:88:9
42 LL | macro_rules! m { () => { Right } }
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46 | ---------- in this macro invocation
47 note: `m` could also refer to the macro defined here
48 --> $DIR/restricted-shadowing-legacy.rs:135:9
50 LL | macro_rules! m { () => {} }
51 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
54 | ---------- in this macro invocation
55 = note: this error originates in the macro `gen_invoc` (in Nightly builds, run with -Z macro-backtrace for more info)
57 error[E0659]: `m` is ambiguous
58 --> $DIR/restricted-shadowing-legacy.rs:148:9
64 | ---------- in this macro invocation
66 = note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
67 note: `m` could refer to the macro defined here
68 --> $DIR/restricted-shadowing-legacy.rs:88:9
70 LL | macro_rules! m { () => { Right } }
71 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74 | ---------- in this macro invocation
75 note: `m` could also refer to the macro defined here
76 --> $DIR/restricted-shadowing-legacy.rs:144:9
78 LL | macro_rules! m { () => {} }
79 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
82 | ---------- in this macro invocation
83 = note: this error originates in the macro `include` (in Nightly builds, run with -Z macro-backtrace for more info)
85 error[E0659]: `m` is ambiguous
86 --> $DIR/restricted-shadowing-legacy.rs:164:9
92 | ---------- in this macro invocation
94 = note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
95 note: `m` could refer to the macro defined here
96 --> $DIR/restricted-shadowing-legacy.rs:88:9
98 LL | macro_rules! m { () => { Right } }
99 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102 | ---------- in this macro invocation
103 note: `m` could also refer to the macro defined here
104 --> $DIR/restricted-shadowing-legacy.rs:85:9
106 LL | macro_rules! m { () => { Wrong } }
107 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110 | ---------- in this macro invocation
111 = note: this error originates in the macro `include` (in Nightly builds, run with -Z macro-backtrace for more info)
113 error[E0659]: `m` is ambiguous
114 --> $DIR/restricted-shadowing-legacy.rs:180:13
120 | ---------- in this macro invocation
122 = note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
123 note: `m` could refer to the macro defined here
124 --> $DIR/restricted-shadowing-legacy.rs:88:9
126 LL | macro_rules! m { () => { Right } }
127 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
130 | ---------- in this macro invocation
131 note: `m` could also refer to the macro defined here
132 --> $DIR/restricted-shadowing-legacy.rs:85:9
134 LL | macro_rules! m { () => { Wrong } }
135 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
138 | ---------- in this macro invocation
139 = note: this error originates in the macro `gen_gen_inner_invoc` (in Nightly builds, run with -Z macro-backtrace for more info)
141 error[E0659]: `m` is ambiguous
142 --> $DIR/restricted-shadowing-legacy.rs:218:42
144 LL | macro_rules! gen_invoc { () => { m!() } }
148 | ---------- in this macro invocation
150 = note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
151 note: `m` could refer to the macro defined here
152 --> $DIR/restricted-shadowing-legacy.rs:88:9
154 LL | macro_rules! m { () => { Right } }
155 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
158 | ---------- in this macro invocation
159 note: `m` could also refer to the macro defined here
160 --> $DIR/restricted-shadowing-legacy.rs:85:9
162 LL | macro_rules! m { () => { Wrong } }
163 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
166 | ---------- in this macro invocation
167 = note: this error originates in the macro `gen_invoc` (in Nightly builds, run with -Z macro-backtrace for more info)
169 error[E0659]: `m` is ambiguous
170 --> $DIR/restricted-shadowing-legacy.rs:232:9
176 | ---------- in this macro invocation
178 = note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
179 note: `m` could refer to the macro defined here
180 --> $DIR/restricted-shadowing-legacy.rs:88:9
182 LL | macro_rules! m { () => { Right } }
183 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
186 | ---------- in this macro invocation
187 note: `m` could also refer to the macro defined here
188 --> $DIR/restricted-shadowing-legacy.rs:227:13
190 LL | macro_rules! m { () => {} }
191 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
194 | ---------- in this macro invocation
195 = note: this error originates in the macro `include` (in Nightly builds, run with -Z macro-backtrace for more info)
197 error[E0659]: `m` is ambiguous
198 --> $DIR/restricted-shadowing-legacy.rs:262:42
200 LL | macro_rules! gen_invoc { () => { m!() } }
204 | ---------- in this macro invocation
206 = note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
207 note: `m` could refer to the macro defined here
208 --> $DIR/restricted-shadowing-legacy.rs:88:9
210 LL | macro_rules! m { () => { Right } }
211 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
214 | ---------- in this macro invocation
215 note: `m` could also refer to the macro defined here
216 --> $DIR/restricted-shadowing-legacy.rs:257:13
218 LL | macro_rules! m { () => {} }
219 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
222 | ---------- in this macro invocation
223 = note: this error originates in the macro `gen_invoc` (in Nightly builds, run with -Z macro-backtrace for more info)
225 error: aborting due to 8 previous errors
227 For more information about this error, try `rustc --explain E0659`.