Macro generated with #![feature(macro_metavar_expr)] behaves inconsistently with its expansion

I'm encountering an issue with the #![feature(macro_metavar_expr)] feature in Rust version rustc 1.83.0-nightly (18b1161ec 2024-10-02). I'm using this feature to create a macro that generates another macro, but the behavior of the generated macro is inconsistent with its expanded result.

Code example:
The code that demonstrates this issue is located at [ Rust Playground (rust-lang.org)].

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.