]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-103529.rs
Rollup merge of #106950 - the8472:fix-splice-miri, r=cuviper
[rust.git] / tests / ui / macros / issue-103529.rs
1 macro_rules! m {
2     ($s:stmt) => {}
3 }
4
5 m! { mut x }
6 //~^ ERROR expected expression, found keyword `mut`
7 //~| ERROR expected a statement
8 m! { auto x }
9 //~^ ERROR invalid variable declaration
10 m! { var x }
11 //~^ ERROR invalid variable declaration
12
13 fn main() {}