summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/macros-no-semicolon-items.rs
blob: 3afc275d61a2bc864fc954d558f5ba7e6106cb54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
macro_rules! foo()  //~ ERROR semicolon
                    //~| ERROR unexpected end of macro

macro_rules! bar {
    ($($tokens:tt)*) => {}
}

bar!( //~ ERROR semicolon
    blah
    blah
    blah
)

fn main() {
}