]> git.proxmox.com Git - rustc.git/blob - src/test/ui/macros/restricted-shadowing-modern.stderr
b169e63132e450eafef64bc0ba7e3c60c69a7909
[rustc.git] / src / test / ui / macros / restricted-shadowing-modern.stderr
1 error[E0659]: `m` is ambiguous
2 --> $DIR/restricted-shadowing-modern.rs:104:17
3 |
4 LL | m!();
5 | ^ ambiguous name
6 ...
7 LL | 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
11 note: `m` could refer to the macro defined here
12 --> $DIR/restricted-shadowing-modern.rs:91:9
13 |
14 LL | macro m() { Right }
15 | ^^^^^^^^^^^^^^^^^^^
16 ...
17 LL | include!();
18 | ---------- in this macro invocation
19 note: `m` could also refer to the macro defined here
20 --> $DIR/restricted-shadowing-modern.rs:99:9
21 |
22 LL | macro m() {}
23 | ^^^^^^^^^^^^
24 ...
25 LL | 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
29 error[E0659]: `m` is ambiguous
30 --> $DIR/restricted-shadowing-modern.rs:147:33
31 |
32 LL | macro gen_invoc() { m!() }
33 | ^ ambiguous name
34 ...
35 LL | 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
39 note: `m` could refer to the macro defined here
40 --> $DIR/restricted-shadowing-modern.rs:91:9
41 |
42 LL | macro m() { Right }
43 | ^^^^^^^^^^^^^^^^^^^
44 ...
45 LL | include!();
46 | ---------- in this macro invocation
47 note: `m` could also refer to the macro defined here
48 --> $DIR/restricted-shadowing-modern.rs:143:9
49 |
50 LL | macro m() {}
51 | ^^^^^^^^^^^^
52 ...
53 LL | 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
57 error[E0659]: `m` is ambiguous
58 --> $DIR/restricted-shadowing-modern.rs:156:13
59 |
60 LL | m!();
61 | ^ ambiguous name
62 ...
63 LL | 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
67 note: `m` could refer to the macro defined here
68 --> $DIR/restricted-shadowing-modern.rs:91:9
69 |
70 LL | macro m() { Right }
71 | ^^^^^^^^^^^^^^^^^^^
72 ...
73 LL | include!();
74 | ---------- in this macro invocation
75 note: `m` could also refer to the macro defined here
76 --> $DIR/restricted-shadowing-modern.rs:153:9
77 |
78 LL | macro m() {}
79 | ^^^^^^^^^^^^
80 ...
81 LL | 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
85 error[E0659]: `m` is ambiguous
86 --> $DIR/restricted-shadowing-modern.rs:172:13
87 |
88 LL | m!();
89 | ^ ambiguous name
90 ...
91 LL | 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
95 note: `m` could refer to the macro defined here
96 --> $DIR/restricted-shadowing-modern.rs:91:9
97 |
98 LL | macro m() { Right }
99 | ^^^^^^^^^^^^^^^^^^^
100 ...
101 LL | include!();
102 | ---------- in this macro invocation
103 note: `m` could also refer to the macro defined here
104 --> $DIR/restricted-shadowing-modern.rs:87:9
105 |
106 LL | macro m() { Wrong }
107 | ^^^^^^^^^^^^^^^^^^^
108 ...
109 LL | 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
113 error[E0659]: `m` is ambiguous
114 --> $DIR/restricted-shadowing-modern.rs:190:17
115 |
116 LL | m!();
117 | ^ ambiguous name
118 ...
119 LL | 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
123 note: `m` could refer to the macro defined here
124 --> $DIR/restricted-shadowing-modern.rs:91:9
125 |
126 LL | macro m() { Right }
127 | ^^^^^^^^^^^^^^^^^^^
128 ...
129 LL | include!();
130 | ---------- in this macro invocation
131 note: `m` could also refer to the macro defined here
132 --> $DIR/restricted-shadowing-modern.rs:87:9
133 |
134 LL | macro m() { Wrong }
135 | ^^^^^^^^^^^^^^^^^^^
136 ...
137 LL | 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
141 error[E0659]: `m` is ambiguous
142 --> $DIR/restricted-shadowing-modern.rs:233:33
143 |
144 LL | macro gen_invoc() { m!() }
145 | ^ ambiguous name
146 ...
147 LL | 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
151 note: `m` could refer to the macro defined here
152 --> $DIR/restricted-shadowing-modern.rs:91:9
153 |
154 LL | macro m() { Right }
155 | ^^^^^^^^^^^^^^^^^^^
156 ...
157 LL | include!();
158 | ---------- in this macro invocation
159 note: `m` could also refer to the macro defined here
160 --> $DIR/restricted-shadowing-modern.rs:87:9
161 |
162 LL | macro m() { Wrong }
163 | ^^^^^^^^^^^^^^^^^^^
164 ...
165 LL | 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
169 error: aborting due to 6 previous errors
170
171 For more information about this error, try `rustc --explain E0659`.