about summary refs log tree commit diff
path: root/tests/ui/macros/user-defined-macro-rules.rs
blob: baabe0e90c450c70fcff977e55e7696daba7866f (plain)
1
2
3
4
5
6
7
8
9
//@ check-pass

macro_rules! macro_rules { () => { struct S; } } // OK

macro_rules! {} // OK, calls the macro defined above

fn main() {
    let s = S;
}