add regression test
This commit is contained in:
parent
47611e1604
commit
e8b0e6b990
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