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 20:05:47 +00: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 20:05:47 +00:00
}
}
2017-02-26 03:25:22 +00:00
foo!();
2020-03-18 13:34:11 +01:00
fn main() {}