mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
16 lines
215 B
Rust
16 lines
215 B
Rust
macro_rules! make_item {
|
|
($a:ident) => {
|
|
struct $a;
|
|
}; //~^ ERROR expected expression
|
|
//~| ERROR expected expression
|
|
}
|
|
|
|
fn a() {
|
|
make_item!(A)
|
|
}
|
|
fn b() {
|
|
make_item!(B)
|
|
}
|
|
|
|
fn main() {}
|