Files
rust/tests/ui/editions/auxiliary/nested_macro_rules_dep_2024.rs
Eric Huss 4636dd9347 Add tests for nested macro_rules edition behavior
This adds tests to check the behavior of how nested macro_rules
definitions work across edition boundaries. This covers a change in
behavior due to https://github.com/rust-lang/rust/pull/133274.

See https://github.com/rust-lang/rust/issues/135669
2025-02-03 13:12:41 -08:00

24 lines
394 B
Rust

//@ edition: 2024
#[macro_export]
macro_rules! make_macro_with_input {
($i:ident) => {
macro_rules! macro_inner_input {
() => {
pub fn $i() {}
};
}
};
}
#[macro_export]
macro_rules! make_macro {
() => {
macro_rules! macro_inner {
() => {
pub fn gen() {}
};
}
};
}