@@ -313,39 +313,26 @@ LL | unknown_metavar!(a);
313313 |
314314 = note: this error originates in the macro `unknown_metavar` (in Nightly builds, run with -Z macro-backtrace for more info)
315315
316- error[E0425]: cannot find value `i ` in this scope
317- --> $DIR/syntax-errors.rs:23:36
316+ error[E0425]: cannot find function `count ` in this scope
317+ --> $DIR/syntax-errors.rs:23:30
318318 |
319319LL | ( $( $i:ident ),* ) => { count(i) };
320- | ^ not found in this scope
320+ | ^^^^ ^ not found in this scope
321321...
322322LL | no_curly__no_rhs_dollar__round!(a, b, c);
323323 | ---------------------------------------- in this macro invocation
324324 |
325325 = note: this error originates in the macro `no_curly__no_rhs_dollar__round` (in Nightly builds, run with -Z macro-backtrace for more info)
326-
327- error[E0425]: cannot find value `i` in this scope
328- --> $DIR/syntax-errors.rs:30:29
329- |
330- LL | ( $i:ident ) => { count(i) };
331- | ^ not found in this scope
332- ...
333- LL | no_curly__no_rhs_dollar__no_round!(a);
334- | ------------------------------------- in this macro invocation
326+ help: consider importing this associated function
335327 |
336- = note: this error originates in the macro `no_curly__no_rhs_dollar__no_round` (in Nightly builds, run with -Z macro-backtrace for more info)
337-
338- error[E0425]: cannot find value `a` in this scope
339- --> $DIR/syntax-errors.rs:152:37
328+ LL + use std::iter::Iterator::count;
340329 |
341- LL | no_curly__rhs_dollar__no_round!(a);
342- | ^ not found in this scope
343330
344- error[E0425]: cannot find function `count ` in this scope
345- --> $DIR/syntax-errors.rs:23:30
331+ error[E0425]: cannot find value `i ` in this scope
332+ --> $DIR/syntax-errors.rs:23:36
346333 |
347334LL | ( $( $i:ident ),* ) => { count(i) };
348- | ^^^^ ^ not found in this scope
335+ | ^ not found in this scope
349336...
350337LL | no_curly__no_rhs_dollar__round!(a, b, c);
351338 | ---------------------------------------- in this macro invocation
@@ -358,6 +345,21 @@ error[E0425]: cannot find function `count` in this scope
358345LL | ( $i:ident ) => { count(i) };
359346 | ^^^^^ not found in this scope
360347...
348+ LL | no_curly__no_rhs_dollar__no_round!(a);
349+ | ------------------------------------- in this macro invocation
350+ |
351+ = note: this error originates in the macro `no_curly__no_rhs_dollar__no_round` (in Nightly builds, run with -Z macro-backtrace for more info)
352+ help: consider importing this associated function
353+ |
354+ LL + use std::iter::Iterator::count;
355+ |
356+
357+ error[E0425]: cannot find value `i` in this scope
358+ --> $DIR/syntax-errors.rs:30:29
359+ |
360+ LL | ( $i:ident ) => { count(i) };
361+ | ^ not found in this scope
362+ ...
361363LL | no_curly__no_rhs_dollar__no_round!(a);
362364 | ------------------------------------- in this macro invocation
363365 |
@@ -373,6 +375,16 @@ LL | no_curly__rhs_dollar__no_round!(a);
373375 | ---------------------------------- in this macro invocation
374376 |
375377 = note: this error originates in the macro `no_curly__rhs_dollar__no_round` (in Nightly builds, run with -Z macro-backtrace for more info)
378+ help: consider importing this associated function
379+ |
380+ LL + use std::iter::Iterator::count;
381+ |
382+
383+ error[E0425]: cannot find value `a` in this scope
384+ --> $DIR/syntax-errors.rs:152:37
385+ |
386+ LL | no_curly__rhs_dollar__no_round!(a);
387+ | ^ not found in this scope
376388
377389error: aborting due to 39 previous errors
378390
0 commit comments