2023-08-17 08:52:37 -03:00
|
|
|
error: `count` followed by a comma must have an associated index indicating its depth
|
2025-06-20 16:50:20 -04:00
|
|
|
--> $DIR/count-empty-index-arg.rs:7:37
|
2023-08-17 08:52:37 -03:00
|
|
|
|
|
2023-12-01 21:19:22 -03:00
|
|
|
LL | ( $( $($t:ident),* );* ) => { ${count($t,)} }
|
2023-08-17 08:52:37 -03:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
|
error: expected expression, found `$`
|
2025-06-20 16:50:20 -04:00
|
|
|
--> $DIR/count-empty-index-arg.rs:7:35
|
2023-08-17 08:52:37 -03:00
|
|
|
|
|
2023-12-01 21:19:22 -03:00
|
|
|
LL | ( $( $($t:ident),* );* ) => { ${count($t,)} }
|
2023-08-17 08:52:37 -03:00
|
|
|
| ^ expected expression
|
|
|
|
|
...
|
|
|
|
|
LL | foo!(a, a; b, b);
|
|
|
|
|
| ---------------- in this macro invocation
|
|
|
|
|
|
|
|
|
|
|
= note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|