Rollup merge of #152732 - Kivooeo:add-regression-test-1, r=TaKO8Ki

add regression test for 147958

fixes rust-lang/rust#147958
This commit is contained in:
Stuart Cook 2026-02-18 17:29:48 +11:00 committed by GitHub
commit 77e29b25d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,21 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/147958>
//@ check-pass
#![feature(decl_macro)]
macro_rules! exported {
() => {
#[macro_export]
macro_rules! exported {
() => {};
}
};
}
use inner1::*;
exported!();
mod inner1 {
pub macro exported() {}
}
fn main() {}