summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/rfc-3086-metavar-expr/issue-111904.rs
blob: 9cc572c23a1ab333fdea9164ed087292eae0bb6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![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() {
}