mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 08:18:44 +00:00
15 lines
269 B
Rust
15 lines
269 B
Rust
#![feature(macro_metavar_expr)]
|
|
|
|
macro_rules! foo {
|
|
( $( $($t:ident),* );* ) => { ${count($t,)} }
|
|
//~^ ERROR `count` followed by a comma must have an associated
|
|
//~| ERROR expected expression, found `$`
|
|
}
|
|
|
|
fn test() {
|
|
foo!(a, a; b, b);
|
|
}
|
|
|
|
fn main() {
|
|
}
|