summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-103529.rs
blob: fa05baed7fc8e40ee5eadcef11b2a1055cea9082 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
macro_rules! m {
    ($s:stmt) => {}
}

m! { mut x }
//~^ ERROR expected expression, found keyword `mut`
//~| ERROR expected a statement
m! { auto x }
//~^ ERROR invalid variable declaration
m! { var x }
//~^ ERROR invalid variable declaration

fn main() {}