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:
commit
77e29b25d0
1 changed files with 21 additions and 0 deletions
21
tests/ui/resolve/exported-macro-in-mod-147958.rs
Normal file
21
tests/ui/resolve/exported-macro-in-mod-147958.rs
Normal 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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue