2016-05-25 20:05:47 +00:00
|
|
|
macro_rules! foo {
|
|
|
|
{ $+ } => { //~ ERROR expected identifier, found `+`
|
2017-01-29 08:38:44 +00:00
|
|
|
//~^ ERROR missing fragment specifier
|
2022-04-08 16:04:37 +03:00
|
|
|
//~| ERROR missing fragment specifier
|
|
|
|
//~| WARN this was previously accepted
|
2019-05-18 08:24:56 +02:00
|
|
|
$(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() {}
|