rust/tests/ui/macros/pub-item-inside-macro.rs
2024-02-16 20:02:50 +00:00

19 lines
206 B
Rust

//@ run-pass
// Issue #14660
//@ pretty-expanded FIXME #23616
mod bleh {
macro_rules! foo {
() => {
pub fn bar() { }
}
}
foo!();
}
fn main() {
bleh::bar();
}