@@ -94,8 +94,38 @@ help: use the path separator to refer to an item
94
94
LL | <Type! {}>::get;
95
95
| ~~~~~~~~~~~~
96
96
97
+ error[E0423]: expected value, found type alias `Alias`
98
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:43:9
99
+ |
100
+ LL | Alias
101
+ | ^^^^^
102
+ ...
103
+ LL | Type!(alias).get();
104
+ | ------------ in this macro invocation
105
+ |
106
+ = note: this error originates in the macro `Type` (in Nightly builds, run with -Z macro-backtrace for more info)
107
+ help: use the path separator to refer to an item
108
+ |
109
+ LL | <Type!(alias)>::get();
110
+ | ~~~~~~~~~~~~~~~~
111
+
112
+ error[E0423]: expected value, found type alias `Alias`
113
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:43:9
114
+ |
115
+ LL | Alias
116
+ | ^^^^^
117
+ ...
118
+ LL | Type! {alias}.get;
119
+ | ------------- in this macro invocation
120
+ |
121
+ = note: this error originates in the macro `Type` (in Nightly builds, run with -Z macro-backtrace for more info)
122
+ help: use the path separator to refer to an item
123
+ |
124
+ LL | <Type! {alias}>::get;
125
+ | ~~~~~~~~~~~~~~~~~
126
+
97
127
error[E0423]: expected value, found struct `Vec`
98
- --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:46 :9
128
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:52 :9
99
129
|
100
130
LL | Vec.new()
101
131
| ^^^
@@ -110,7 +140,7 @@ LL | Vec::new()
110
140
| ~~
111
141
112
142
error[E0423]: expected value, found struct `Vec`
113
- --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:51 :9
143
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:57 :9
114
144
|
115
145
LL | Vec.new
116
146
| ^^^
@@ -139,6 +169,66 @@ help: use the path separator to refer to an item
139
169
LL | <Type!()>::new(0)
140
170
| ~~~~~~~~~~~
141
171
142
- error: aborting due to 11 previous errors
172
+ error[E0423]: expected value, found type alias `Alias`
173
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:43:9
174
+ |
175
+ LL | Alias
176
+ | ^^^^^
177
+ ...
178
+ LL | let _ = create!(macro method alias);
179
+ | --------------------------- in this macro invocation
180
+ |
181
+ = note: this error originates in the macro `Type` which comes from the expansion of the macro `create` (in Nightly builds, run with -Z macro-backtrace for more info)
182
+ help: use the path separator to refer to an item
183
+ |
184
+ LL | <Type!(alias)>::new(0)
185
+ | ~~~~~~~~~~~~~~~~
186
+
187
+ error[E0423]: expected value, found type alias `Alias`
188
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:73:9
189
+ |
190
+ LL | $Ty.foo
191
+ | ^^^
192
+ ...
193
+ LL | let _ = check_ty!(Alias);
194
+ | ---------------- in this macro invocation
195
+ |
196
+ = note: this error originates in the macro `check_ty` (in Nightly builds, run with -Z macro-backtrace for more info)
197
+ help: use the path separator to refer to an item
198
+ |
199
+ LL | $Ty::foo
200
+ | ~~
201
+
202
+ error[E0423]: expected value, found type alias `Alias`
203
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:80:9
204
+ |
205
+ LL | Alias.$Ident
206
+ | ^^^^^
207
+ ...
208
+ LL | let _ = check_ident!(foo);
209
+ | ----------------- in this macro invocation
210
+ |
211
+ = note: this error originates in the macro `check_ident` (in Nightly builds, run with -Z macro-backtrace for more info)
212
+ help: use the path separator to refer to an item
213
+ |
214
+ LL | <Alias>::$Ident
215
+ | ~~~~~~~~~
216
+
217
+ error[E0423]: expected value, found type alias `Alias`
218
+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:87:9
219
+ |
220
+ LL | $Ty.$Ident
221
+ | ^^^
222
+ ...
223
+ LL | let _ = check_ty_ident!(Alias, foo);
224
+ | --------------------------- in this macro invocation
225
+ |
226
+ = note: this error originates in the macro `check_ty_ident` (in Nightly builds, run with -Z macro-backtrace for more info)
227
+ help: use the path separator to refer to an item
228
+ |
229
+ LL | <$Ty>::$Ident
230
+ | ~~~~~~~
231
+
232
+ error: aborting due to 17 previous errors
143
233
144
234
For more information about this error, try `rustc --explain E0423`.
0 commit comments