about summary refs log tree commit diff
path: root/tests/ui/parser/macro/macros-no-semicolon-items.rs
blob: 86889279cea6af77528bb81c873e2c32ade96775 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
macro_rules! foo()  //~ ERROR semicolon
                    //~| ERROR macros must contain at least one rule

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

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

fn main() {
}