rust/tests/ui/macros/rfc-3086-metavar-expr/issue-111904.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
268 B
Rust
Raw Normal View History

#![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() {
}