1 error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
2 --> $DIR/restricted-shadowing-legacy.rs:101:13
4 LL | m!(); //~ ERROR `m` is ambiguous
8 | ----------- in this macro invocation
10 note: `m` could refer to the macro defined here
11 --> $DIR/restricted-shadowing-legacy.rs:88:9
13 LL | macro_rules! m { () => { Right } }
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 | ----------- in this macro invocation
18 note: `m` could also refer to the macro defined here
19 --> $DIR/restricted-shadowing-legacy.rs:97:9
21 LL | macro_rules! m { () => {} }
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 | ----------- in this macro invocation
27 error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
28 --> $DIR/restricted-shadowing-legacy.rs:139:42
30 LL | macro_rules! gen_invoc { () => { m!() } } //~ ERROR `m` is ambiguous
34 | ----------- in this macro invocation
36 note: `m` could refer to the macro defined here
37 --> $DIR/restricted-shadowing-legacy.rs:88:9
39 LL | macro_rules! m { () => { Right } }
40 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43 | ----------- in this macro invocation
44 note: `m` could also refer to the macro defined here
45 --> $DIR/restricted-shadowing-legacy.rs:135:9
47 LL | macro_rules! m { () => {} }
48 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
51 | ----------- in this macro invocation
53 error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
54 --> $DIR/restricted-shadowing-legacy.rs:148:9
56 LL | m!(); //~ ERROR `m` is ambiguous
60 | ----------- in this macro invocation
62 note: `m` could refer to the macro defined here
63 --> $DIR/restricted-shadowing-legacy.rs:88:9
65 LL | macro_rules! m { () => { Right } }
66 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
69 | ----------- in this macro invocation
70 note: `m` could also refer to the macro defined here
71 --> $DIR/restricted-shadowing-legacy.rs:144:9
73 LL | macro_rules! m { () => {} }
74 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
77 | ----------- in this macro invocation
79 error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
80 --> $DIR/restricted-shadowing-legacy.rs:164:9
82 LL | m!(); //~ ERROR `m` is ambiguous
86 | ----------- in this macro invocation
88 note: `m` could refer to the macro defined here
89 --> $DIR/restricted-shadowing-legacy.rs:88:9
91 LL | macro_rules! m { () => { Right } }
92 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95 | ----------- in this macro invocation
96 note: `m` could also refer to the macro defined here
97 --> $DIR/restricted-shadowing-legacy.rs:85:9
99 LL | macro_rules! m { () => { Wrong } }
100 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
103 | ----------- in this macro invocation
105 error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
106 --> $DIR/restricted-shadowing-legacy.rs:180:13
108 LL | m!(); //~ ERROR `m` is ambiguous
112 | ----------- in this macro invocation
114 note: `m` could refer to the macro defined here
115 --> $DIR/restricted-shadowing-legacy.rs:88:9
117 LL | macro_rules! m { () => { Right } }
118 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
121 | ----------- in this macro invocation
122 note: `m` could also refer to the macro defined here
123 --> $DIR/restricted-shadowing-legacy.rs:85:9
125 LL | macro_rules! m { () => { Wrong } }
126 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
129 | ----------- in this macro invocation
131 error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
132 --> $DIR/restricted-shadowing-legacy.rs:218:42
134 LL | macro_rules! gen_invoc { () => { m!() } } //~ ERROR `m` is ambiguous
138 | ----------- in this macro invocation
140 note: `m` could refer to the macro defined here
141 --> $DIR/restricted-shadowing-legacy.rs:88:9
143 LL | macro_rules! m { () => { Right } }
144 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
147 | ----------- in this macro invocation
148 note: `m` could also refer to the macro defined here
149 --> $DIR/restricted-shadowing-legacy.rs:85:9
151 LL | macro_rules! m { () => { Wrong } }
152 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
155 | ----------- in this macro invocation
157 error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
158 --> $DIR/restricted-shadowing-legacy.rs:232:9
160 LL | m!(); //~ ERROR `m` is ambiguous
164 | ----------- in this macro invocation
166 note: `m` could refer to the macro defined here
167 --> $DIR/restricted-shadowing-legacy.rs:88:9
169 LL | macro_rules! m { () => { Right } }
170 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
173 | ----------- in this macro invocation
174 note: `m` could also refer to the macro defined here
175 --> $DIR/restricted-shadowing-legacy.rs:227:13
177 LL | macro_rules! m { () => {} }
178 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
181 | ----------- in this macro invocation
183 error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
184 --> $DIR/restricted-shadowing-legacy.rs:262:42
186 LL | macro_rules! gen_invoc { () => { m!() } } //~ ERROR `m` is ambiguous
190 | ----------- in this macro invocation
192 note: `m` could refer to the macro defined here
193 --> $DIR/restricted-shadowing-legacy.rs:88:9
195 LL | macro_rules! m { () => { Right } }
196 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
199 | ----------- in this macro invocation
200 note: `m` could also refer to the macro defined here
201 --> $DIR/restricted-shadowing-legacy.rs:257:13
203 LL | macro_rules! m { () => {} }
204 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
207 | ----------- in this macro invocation
209 error: aborting due to 8 previous errors
211 For more information about this error, try `rustc --explain E0659`.