rust/tests/ui/macros/issue-34421-mac-expr-bad-stmt-good-add-semi.rs

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

16 lines
215 B
Rust
Raw Normal View History

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