@matthewjasper Indeed that appears to be the case, thanks for that one!
I’ve got a slightly more complex case now, consider the code @ this playground link, which compiles.
If I uncomment the additional matcher arm in the inner macro, like so, I get an error:
Compiling playground v0.0.1 (file:///playground)
error: attempted to repeat an expression containing no syntax variables matched as repeating at this depth
--> src/main.rs:16:24
|
16 | ($foo:expr; [ $($arg:ident),* ]) => {
| ^^^^^^^^^^^^
error: aborting due to previous error
error: Could not compile `playground`.
To learn more, run the command again with --verbose.
I have to be honest, I don’t know what’s happening here, as I’m almost sure I haven’t misnamed anything (there is an unused fragment $foo:expr but that should not cause any problems I think).