2018-11-04 16:11:59 -06:00
|
|
|
error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:106:17
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
|
|
|
LL | m!(); //~ ERROR `m` is ambiguous
|
2018-09-07 18:51:20 -05:00
|
|
|
| ^ ambiguous name
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `m` could refer to the macro defined here
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:91:9
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
2018-09-07 18:50:57 -05:00
|
|
|
LL | macro m() { Right }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-08-29 20:56:55 -05:00
|
|
|
...
|
|
|
|
LL | include!();
|
|
|
|
| ----------- in this macro invocation
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `m` could also refer to the macro defined here
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:101:9
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
|
|
|
LL | macro m() {}
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | include!();
|
|
|
|
| ----------- in this macro invocation
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:149:33
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
|
|
|
LL | macro gen_invoc() { m!() } //~ ERROR `m` is ambiguous
|
2018-09-07 18:51:20 -05:00
|
|
|
| ^ ambiguous name
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `m` could refer to the macro defined here
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:91:9
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
2018-09-07 18:50:57 -05:00
|
|
|
LL | macro m() { Right }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-08-29 20:56:55 -05:00
|
|
|
...
|
|
|
|
LL | include!();
|
|
|
|
| ----------- in this macro invocation
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `m` could also refer to the macro defined here
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:145:9
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
|
|
|
LL | macro m() {}
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | include!();
|
|
|
|
| ----------- in this macro invocation
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:158:13
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
|
|
|
LL | m!(); //~ ERROR `m` is ambiguous
|
2018-09-07 18:51:20 -05:00
|
|
|
| ^ ambiguous name
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `m` could refer to the macro defined here
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:91:9
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
2018-09-07 18:50:57 -05:00
|
|
|
LL | macro m() { Right }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-08-29 20:56:55 -05:00
|
|
|
...
|
|
|
|
LL | include!();
|
|
|
|
| ----------- in this macro invocation
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `m` could also refer to the macro defined here
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:155:9
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
|
|
|
LL | macro m() {}
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | include!();
|
|
|
|
| ----------- in this macro invocation
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:174:13
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
|
|
|
LL | m!(); //~ ERROR `m` is ambiguous
|
2018-09-07 18:51:20 -05:00
|
|
|
| ^ ambiguous name
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `m` could refer to the macro defined here
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:91:9
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
2018-09-07 18:50:57 -05:00
|
|
|
LL | macro m() { Right }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-08-29 20:56:55 -05:00
|
|
|
...
|
|
|
|
LL | include!();
|
|
|
|
| ----------- in this macro invocation
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `m` could also refer to the macro defined here
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:87:9
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
2018-09-07 18:50:57 -05:00
|
|
|
LL | macro m() { Wrong }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-08-29 20:56:55 -05:00
|
|
|
...
|
|
|
|
LL | include!();
|
|
|
|
| ----------- in this macro invocation
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:192:17
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
|
|
|
LL | m!(); //~ ERROR `m` is ambiguous
|
2018-09-07 18:51:20 -05:00
|
|
|
| ^ ambiguous name
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `m` could refer to the macro defined here
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:91:9
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
2018-09-07 18:50:57 -05:00
|
|
|
LL | macro m() { Right }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-08-29 20:56:55 -05:00
|
|
|
...
|
|
|
|
LL | include!();
|
|
|
|
| ----------- in this macro invocation
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `m` could also refer to the macro defined here
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:87:9
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
2018-09-07 18:50:57 -05:00
|
|
|
LL | macro m() { Wrong }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-08-29 20:56:55 -05:00
|
|
|
...
|
|
|
|
LL | include!();
|
|
|
|
| ----------- in this macro invocation
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:235:33
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
|
|
|
LL | macro gen_invoc() { m!() } //~ ERROR `m` is ambiguous
|
2018-09-07 18:51:20 -05:00
|
|
|
| ^ ambiguous name
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `m` could refer to the macro defined here
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:91:9
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
2018-09-07 18:50:57 -05:00
|
|
|
LL | macro m() { Right }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-08-29 20:56:55 -05:00
|
|
|
...
|
|
|
|
LL | include!();
|
|
|
|
| ----------- in this macro invocation
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `m` could also refer to the macro defined here
|
2018-09-07 18:50:57 -05:00
|
|
|
--> $DIR/restricted-shadowing-modern.rs:87:9
|
2018-08-29 20:56:55 -05:00
|
|
|
|
|
2018-09-07 18:50:57 -05:00
|
|
|
LL | macro m() { Wrong }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2018-08-29 20:56:55 -05:00
|
|
|
...
|
|
|
|
LL | include!();
|
|
|
|
| ----------- in this macro invocation
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0659`.
|