about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/ice-3747.rs
blob: 62c7835ac55c097d26725f310421c11da8fed819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ check-pass
// Test for https://github.com/rust-lang/rust-clippy/issues/3747

macro_rules! a {
    ( $pub:tt $($attr:tt)* ) => {
        $($attr)* $pub fn say_hello() {}
    };
}

macro_rules! b {
    () => {
        a! { pub }
    };
}

b! {}

fn main() {}