mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
18 lines
303 B
Rust
18 lines
303 B
Rust
// https://github.com/rust-lang/rust/issues/9110
|
|
//@ check-pass
|
|
#![allow(dead_code)]
|
|
#![allow(non_snake_case)]
|
|
|
|
macro_rules! silly_macro {
|
|
() => (
|
|
pub mod Qux {
|
|
pub struct Foo { x : u8 }
|
|
pub fn bar(_foo : Foo) {}
|
|
}
|
|
);
|
|
}
|
|
|
|
silly_macro!();
|
|
|
|
pub fn main() {}
|