rust/tests/ui/macros/issue-103529.rs
2023-01-11 09:32:08 +00:00

14 lines
258 B
Rust

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() {}