@@ -99,8 +99,38 @@ LL - Type! {}.get;
9999LL + <Type! {}>::get;
100100 |
101101
102+ error[E0423]: expected value, found type alias `Alias`
103+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:43:9
104+ |
105+ LL | Alias
106+ | ^^^^^
107+ ...
108+ LL | Type!(alias).get();
109+ | ------------ in this macro invocation
110+ |
111+ = note: this error originates in the macro `Type` (in Nightly builds, run with -Z macro-backtrace for more info)
112+ help: use the path separator to refer to an item
113+ |
114+ LL | <Type!(alias)>::get();
115+ | ~~~~~~~~~~~~~~~~
116+
117+ error[E0423]: expected value, found type alias `Alias`
118+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:43:9
119+ |
120+ LL | Alias
121+ | ^^^^^
122+ ...
123+ LL | Type! {alias}.get;
124+ | ------------- in this macro invocation
125+ |
126+ = note: this error originates in the macro `Type` (in Nightly builds, run with -Z macro-backtrace for more info)
127+ help: use the path separator to refer to an item
128+ |
129+ LL | <Type! {alias}>::get;
130+ | ~~~~~~~~~~~~~~~~~
131+
102132error[E0423]: expected value, found struct `Vec`
103- --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:46 :9
133+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:52 :9
104134 |
105135LL | Vec.new()
106136 | ^^^
@@ -116,7 +146,7 @@ LL + Vec::new()
116146 |
117147
118148error[E0423]: expected value, found struct `Vec`
119- --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:51 :9
149+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:57 :9
120150 |
121151LL | Vec.new
122152 | ^^^
@@ -147,6 +177,66 @@ LL - Type!().new(0)
147177LL + <Type!()>::new(0)
148178 |
149179
150- error: aborting due to 11 previous errors
180+ error[E0423]: expected value, found type alias `Alias`
181+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:43:9
182+ |
183+ LL | Alias
184+ | ^^^^^
185+ ...
186+ LL | let _ = create!(macro method alias);
187+ | --------------------------- in this macro invocation
188+ |
189+ = 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)
190+ help: use the path separator to refer to an item
191+ |
192+ LL | <Type!(alias)>::new(0)
193+ | ~~~~~~~~~~~~~~~~
194+
195+ error[E0423]: expected value, found type alias `Alias`
196+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:73:9
197+ |
198+ LL | $Ty.foo
199+ | ^^^
200+ ...
201+ LL | let _ = check_ty!(Alias);
202+ | ---------------- in this macro invocation
203+ |
204+ = note: this error originates in the macro `check_ty` (in Nightly builds, run with -Z macro-backtrace for more info)
205+ help: use the path separator to refer to an item
206+ |
207+ LL | $Ty::foo
208+ | ~~
209+
210+ error[E0423]: expected value, found type alias `Alias`
211+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:80:9
212+ |
213+ LL | Alias.$Ident
214+ | ^^^^^
215+ ...
216+ LL | let _ = check_ident!(foo);
217+ | ----------------- in this macro invocation
218+ |
219+ = note: this error originates in the macro `check_ident` (in Nightly builds, run with -Z macro-backtrace for more info)
220+ help: use the path separator to refer to an item
221+ |
222+ LL | <Alias>::$Ident
223+ | ~~~~~~~~~
224+
225+ error[E0423]: expected value, found type alias `Alias`
226+ --> $DIR/dot-notation-type-namespace-suggest-path-sep.rs:87:9
227+ |
228+ LL | $Ty.$Ident
229+ | ^^^
230+ ...
231+ LL | let _ = check_ty_ident!(Alias, foo);
232+ | --------------------------- in this macro invocation
233+ |
234+ = note: this error originates in the macro `check_ty_ident` (in Nightly builds, run with -Z macro-backtrace for more info)
235+ help: use the path separator to refer to an item
236+ |
237+ LL | <$Ty>::$Ident
238+ | ~~~~~~~
239+
240+ error: aborting due to 17 previous errors
151241
152242For more information about this error, try `rustc --explain E0423`.
0 commit comments