]> git.lizzy.rs Git - rust.git/blob - tests/ui/crashes/ice-3747.rs
Add regression test
[rust.git] / tests / ui / crashes / ice-3747.rs
1 // run-pass
2
3 /// Test for https://github.com/rust-lang/rust-clippy/issues/3747
4
5 macro_rules! a {
6     ( $pub:tt $($attr:tt)* ) => {
7         $($attr)* $pub fn say_hello() {}
8     };
9 }
10
11 macro_rules! b {
12     () => {
13         a! { pub }
14     };
15 }
16
17 b! {}
18
19 fn main() {}