os-rust/tests/ui/macros/user-defined-macro-rules.rs

10 lines
155 B
Rust
Raw Permalink Normal View History

//@ check-pass
2017-05-12 09:53:58 +02:00
macro_rules! macro_rules { () => { struct S; } } // OK
macro_rules! {} // OK, calls the macro defined above
fn main() {
let s = S;
}