diff options
Diffstat (limited to 'tests/ui/macros/auxiliary/macro-def-site-super.rs')
-rw-r--r-- | tests/ui/macros/auxiliary/macro-def-site-super.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/macros/auxiliary/macro-def-site-super.rs b/tests/ui/macros/auxiliary/macro-def-site-super.rs new file mode 100644 index 000000000..cab747c2c --- /dev/null +++ b/tests/ui/macros/auxiliary/macro-def-site-super.rs @@ -0,0 +1,13 @@ +#![feature(decl_macro)] + +mod inner1 { + pub struct Struct {} + + pub mod inner2 { + pub macro mac() { + super::Struct + } + } +} + +pub use inner1::inner2 as public; |