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
24 lines
394 B
Rust
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() {}
|
|
};
|
|
}
|
|
};
|
|
}
|