rust/src/test/ui/parser/macro/issue-33569.rs
2020-03-24 06:28:55 +01:00

10 lines
221 B
Rust

fn main() {}
macro_rules! foo {
{ $+ } => { //~ ERROR expected identifier, found `+`
//~^ ERROR missing fragment specifier
$(x)(y) //~ ERROR expected one of: `*`, `+`, or `?`
}
}
foo!();