diff options
Diffstat (limited to 'tests/ui/macros/pub-item-inside-macro.rs')
-rw-r--r-- | tests/ui/macros/pub-item-inside-macro.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/macros/pub-item-inside-macro.rs b/tests/ui/macros/pub-item-inside-macro.rs new file mode 100644 index 000000000..d07681453 --- /dev/null +++ b/tests/ui/macros/pub-item-inside-macro.rs @@ -0,0 +1,18 @@ +// run-pass +// Issue #14660 + +// pretty-expanded FIXME #23616 + +mod bleh { + macro_rules! foo { + () => { + pub fn bar() { } + } + } + + foo!(); +} + +fn main() { + bleh::bar(); +} |