mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-01 05:25:38 +00:00
Since [1], the fragment specifier is unconditionally required in all editions. This means `NonTerminalKind` no longer needs to be optional, as we can reject this code during the expansion of `macro_rules!` rather than handling it throughout the code. Do this cleanup here. [1]: https://github.com/rust-lang/rust/pull/128425
11 lines
246 B
Rust
11 lines
246 B
Rust
macro_rules! foo {
|
|
{ $+ } => { //~ ERROR expected identifier, found `+`
|
|
//~^ ERROR missing fragment specifier
|
|
$(x)(y) //~ ERROR expected one of: `*`, `+`, or `?`
|
|
}
|
|
}
|
|
|
|
foo!(); //~ ERROR unexpected end
|
|
|
|
fn main() {}
|