Files
rust/tests/ui/macros/macro-expansion-module-structure-9110.rs

18 lines
303 B
Rust
Raw Normal View History

2025-07-13 16:39:45 -04:00
// https://github.com/rust-lang/rust/issues/9110
//@ check-pass
#![allow(dead_code)]
#![allow(non_snake_case)]
macro_rules! silly_macro {
2013-09-11 22:17:57 -07:00
() => (
pub mod Qux {
pub struct Foo { x : u8 }
pub fn bar(_foo : Foo) {}
}
);
}
2013-09-11 22:17:57 -07:00
silly_macro!();
2013-09-11 22:17:57 -07:00
pub fn main() {}