mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
14 lines
258 B
Rust
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() {}
|