2023-08-17 08:52:37 -03:00
|
|
|
#![feature(macro_metavar_expr)]
|
|
|
|
|
|
|
|
macro_rules! foo {
|
2023-12-01 21:19:22 -03:00
|
|
|
( $( $($t:ident),* );* ) => { ${count($t,)} }
|
2023-08-17 08:52:37 -03:00
|
|
|
//~^ ERROR `count` followed by a comma must have an associated
|
|
|
|
//~| ERROR expected expression, found `$`
|
|
|
|
}
|
|
|
|
|
|
|
|
fn test() {
|
|
|
|
foo!(a, a; b, b);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|