]> git.proxmox.com Git - rustc.git/blob - src/test/ui/macros/restricted-shadowing-modern.stderr
New upstream version 1.39.0+dfsg1
[rustc.git] / src / test / ui / macros / restricted-shadowing-modern.stderr
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-modern.rs:104:17
3 |
4 LL | m!();
5 | ^ ambiguous name
6 ...
7 LL | include!();
8 | ----------- in this macro invocation
9 |
10 note: `m` could refer to the macro defined here
11 --> $DIR/restricted-shadowing-modern.rs:91:9
12 |
13 LL | macro m() { Right }
14 | ^^^^^^^^^^^^^^^^^^^
15 ...
16 LL | include!();
17 | ----------- in this macro invocation
18 note: `m` could also refer to the macro defined here
19 --> $DIR/restricted-shadowing-modern.rs:99:9
20 |
21 LL | macro m() {}
22 | ^^^^^^^^^^^^
23 ...
24 LL | include!();
25 | ----------- in this macro invocation
26
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-modern.rs:147:33
29 |
30 LL | macro gen_invoc() { m!() }
31 | ^ ambiguous name
32 ...
33 LL | include!();
34 | ----------- in this macro invocation
35 |
36 note: `m` could refer to the macro defined here
37 --> $DIR/restricted-shadowing-modern.rs:91:9
38 |
39 LL | macro m() { Right }
40 | ^^^^^^^^^^^^^^^^^^^
41 ...
42 LL | include!();
43 | ----------- in this macro invocation
44 note: `m` could also refer to the macro defined here
45 --> $DIR/restricted-shadowing-modern.rs:143:9
46 |
47 LL | macro m() {}
48 | ^^^^^^^^^^^^
49 ...
50 LL | include!();
51 | ----------- in this macro invocation
52
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-modern.rs:156:13
55 |
56 LL | m!();
57 | ^ ambiguous name
58 ...
59 LL | include!();
60 | ----------- in this macro invocation
61 |
62 note: `m` could refer to the macro defined here
63 --> $DIR/restricted-shadowing-modern.rs:91:9
64 |
65 LL | macro m() { Right }
66 | ^^^^^^^^^^^^^^^^^^^
67 ...
68 LL | include!();
69 | ----------- in this macro invocation
70 note: `m` could also refer to the macro defined here
71 --> $DIR/restricted-shadowing-modern.rs:153:9
72 |
73 LL | macro m() {}
74 | ^^^^^^^^^^^^
75 ...
76 LL | include!();
77 | ----------- in this macro invocation
78
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-modern.rs:172:13
81 |
82 LL | m!();
83 | ^ ambiguous name
84 ...
85 LL | include!();
86 | ----------- in this macro invocation
87 |
88 note: `m` could refer to the macro defined here
89 --> $DIR/restricted-shadowing-modern.rs:91:9
90 |
91 LL | macro m() { Right }
92 | ^^^^^^^^^^^^^^^^^^^
93 ...
94 LL | include!();
95 | ----------- in this macro invocation
96 note: `m` could also refer to the macro defined here
97 --> $DIR/restricted-shadowing-modern.rs:87:9
98 |
99 LL | macro m() { Wrong }
100 | ^^^^^^^^^^^^^^^^^^^
101 ...
102 LL | include!();
103 | ----------- in this macro invocation
104
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-modern.rs:190:17
107 |
108 LL | m!();
109 | ^ ambiguous name
110 ...
111 LL | include!();
112 | ----------- in this macro invocation
113 |
114 note: `m` could refer to the macro defined here
115 --> $DIR/restricted-shadowing-modern.rs:91:9
116 |
117 LL | macro m() { Right }
118 | ^^^^^^^^^^^^^^^^^^^
119 ...
120 LL | include!();
121 | ----------- in this macro invocation
122 note: `m` could also refer to the macro defined here
123 --> $DIR/restricted-shadowing-modern.rs:87:9
124 |
125 LL | macro m() { Wrong }
126 | ^^^^^^^^^^^^^^^^^^^
127 ...
128 LL | include!();
129 | ----------- in this macro invocation
130
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-modern.rs:233:33
133 |
134 LL | macro gen_invoc() { m!() }
135 | ^ ambiguous name
136 ...
137 LL | include!();
138 | ----------- in this macro invocation
139 |
140 note: `m` could refer to the macro defined here
141 --> $DIR/restricted-shadowing-modern.rs:91:9
142 |
143 LL | macro m() { Right }
144 | ^^^^^^^^^^^^^^^^^^^
145 ...
146 LL | include!();
147 | ----------- in this macro invocation
148 note: `m` could also refer to the macro defined here
149 --> $DIR/restricted-shadowing-modern.rs:87:9
150 |
151 LL | macro m() { Wrong }
152 | ^^^^^^^^^^^^^^^^^^^
153 ...
154 LL | include!();
155 | ----------- in this macro invocation
156
157 error: aborting due to 6 previous errors
158
159 For more information about this error, try `rustc --explain E0659`.