add regression test

This commit is contained in:
Kivooeo 2026-02-13 21:17:53 +00:00
parent 47611e1604
commit e8b0e6b990

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() {}