1error[E0659]: `m` is ambiguous 2 --> $DIR/restricted-shadowing-legacy.rs:101:13 3 | 4LL | m!(); 5 | ^ ambiguous name 6... 7LL | include!(); 8 | ---------- in this macro invocation 9 | 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 11note: `m` could refer to the macro defined here 12 --> $DIR/restricted-shadowing-legacy.rs:88:9 13 | 14LL | macro_rules! m { () => { Right } } 15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16... 17LL | include!(); 18 | ---------- in this macro invocation 19note: `m` could also refer to the macro defined here 20 --> $DIR/restricted-shadowing-legacy.rs:97:9 21 | 22LL | macro_rules! m { () => {} } 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 24... 25LL | include!(); 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) 28 29error[E0659]: `m` is ambiguous 30 --> $DIR/restricted-shadowing-legacy.rs:139:42 31 | 32LL | macro_rules! gen_invoc { () => { m!() } } 33 | ^ ambiguous name 34... 35LL | include!(); 36 | ---------- in this macro invocation 37 | 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 39note: `m` could refer to the macro defined here 40 --> $DIR/restricted-shadowing-legacy.rs:88:9 41 | 42LL | macro_rules! m { () => { Right } } 43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 44... 45LL | include!(); 46 | ---------- in this macro invocation 47note: `m` could also refer to the macro defined here 48 --> $DIR/restricted-shadowing-legacy.rs:135:9 49 | 50LL | macro_rules! m { () => {} } 51 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 52... 53LL | include!(); 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) 56 57error[E0659]: `m` is ambiguous 58 --> $DIR/restricted-shadowing-legacy.rs:148:9 59 | 60LL | m!(); 61 | ^ ambiguous name 62... 63LL | include!(); 64 | ---------- in this macro invocation 65 | 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 67note: `m` could refer to the macro defined here 68 --> $DIR/restricted-shadowing-legacy.rs:88:9 69 | 70LL | macro_rules! m { () => { Right } } 71 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 72... 73LL | include!(); 74 | ---------- in this macro invocation 75note: `m` could also refer to the macro defined here 76 --> $DIR/restricted-shadowing-legacy.rs:144:9 77 | 78LL | macro_rules! m { () => {} } 79 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 80... 81LL | include!(); 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) 84 85error[E0659]: `m` is ambiguous 86 --> $DIR/restricted-shadowing-legacy.rs:164:9 87 | 88LL | m!(); 89 | ^ ambiguous name 90... 91LL | include!(); 92 | ---------- in this macro invocation 93 | 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 95note: `m` could refer to the macro defined here 96 --> $DIR/restricted-shadowing-legacy.rs:88:9 97 | 98LL | macro_rules! m { () => { Right } } 99 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 100... 101LL | include!(); 102 | ---------- in this macro invocation 103note: `m` could also refer to the macro defined here 104 --> $DIR/restricted-shadowing-legacy.rs:85:9 105 | 106LL | macro_rules! m { () => { Wrong } } 107 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 108... 109LL | include!(); 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) 112 113error[E0659]: `m` is ambiguous 114 --> $DIR/restricted-shadowing-legacy.rs:180:13 115 | 116LL | m!(); 117 | ^ ambiguous name 118... 119LL | include!(); 120 | ---------- in this macro invocation 121 | 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 123note: `m` could refer to the macro defined here 124 --> $DIR/restricted-shadowing-legacy.rs:88:9 125 | 126LL | macro_rules! m { () => { Right } } 127 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 128... 129LL | include!(); 130 | ---------- in this macro invocation 131note: `m` could also refer to the macro defined here 132 --> $DIR/restricted-shadowing-legacy.rs:85:9 133 | 134LL | macro_rules! m { () => { Wrong } } 135 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 136... 137LL | include!(); 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) 140 141error[E0659]: `m` is ambiguous 142 --> $DIR/restricted-shadowing-legacy.rs:218:42 143 | 144LL | macro_rules! gen_invoc { () => { m!() } } 145 | ^ ambiguous name 146... 147LL | include!(); 148 | ---------- in this macro invocation 149 | 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 151note: `m` could refer to the macro defined here 152 --> $DIR/restricted-shadowing-legacy.rs:88:9 153 | 154LL | macro_rules! m { () => { Right } } 155 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156... 157LL | include!(); 158 | ---------- in this macro invocation 159note: `m` could also refer to the macro defined here 160 --> $DIR/restricted-shadowing-legacy.rs:85:9 161 | 162LL | macro_rules! m { () => { Wrong } } 163 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 164... 165LL | include!(); 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) 168 169error[E0659]: `m` is ambiguous 170 --> $DIR/restricted-shadowing-legacy.rs:232:9 171 | 172LL | m!(); 173 | ^ ambiguous name 174... 175LL | include!(); 176 | ---------- in this macro invocation 177 | 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 179note: `m` could refer to the macro defined here 180 --> $DIR/restricted-shadowing-legacy.rs:88:9 181 | 182LL | macro_rules! m { () => { Right } } 183 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 184... 185LL | include!(); 186 | ---------- in this macro invocation 187note: `m` could also refer to the macro defined here 188 --> $DIR/restricted-shadowing-legacy.rs:227:13 189 | 190LL | macro_rules! m { () => {} } 191 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192... 193LL | include!(); 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) 196 197error[E0659]: `m` is ambiguous 198 --> $DIR/restricted-shadowing-legacy.rs:262:42 199 | 200LL | macro_rules! gen_invoc { () => { m!() } } 201 | ^ ambiguous name 202... 203LL | include!(); 204 | ---------- in this macro invocation 205 | 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 207note: `m` could refer to the macro defined here 208 --> $DIR/restricted-shadowing-legacy.rs:88:9 209 | 210LL | macro_rules! m { () => { Right } } 211 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 212... 213LL | include!(); 214 | ---------- in this macro invocation 215note: `m` could also refer to the macro defined here 216 --> $DIR/restricted-shadowing-legacy.rs:257:13 217 | 218LL | macro_rules! m { () => {} } 219 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220... 221LL | include!(); 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) 224 225error: aborting due to 8 previous errors 226 227For more information about this error, try `rustc --explain E0659`. 228