Skip to content

Commit 77e29b2

Browse files
authored
Rollup merge of #152732 - Kivooeo:add-regression-test-1, r=TaKO8Ki
add regression test for 147958 fixes #147958
2 parents f7d5a64 + e8b0e6b commit 77e29b2

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/147958>
2+
3+
//@ check-pass
4+
5+
#![feature(decl_macro)]
6+
7+
macro_rules! exported {
8+
() => {
9+
#[macro_export]
10+
macro_rules! exported {
11+
() => {};
12+
}
13+
};
14+
}
15+
use inner1::*;
16+
exported!();
17+
mod inner1 {
18+
pub macro exported() {}
19+
}
20+
21+
fn main() {}

0 commit comments

Comments
 (0)