rust/tests/ui/macros/issue-103529.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
258 B
Rust
Raw Normal View History

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