rust/tests/ui/parser/macro/issue-33569.rs

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

13 lines
330 B
Rust
Raw Normal View History

2016-05-25 15:05:47 -05:00
macro_rules! foo {
{ $+ } => { //~ ERROR expected identifier, found `+`
//~^ ERROR missing fragment specifier
//~| ERROR missing fragment specifier
//~| WARN this was previously accepted
$(x)(y) //~ ERROR expected one of: `*`, `+`, or `?`
2016-05-25 15:05:47 -05:00
}
}
2017-02-25 21:25:22 -06:00
foo!();
2020-03-18 07:34:11 -05:00
fn main() {}