]> git.lizzy.rs Git - rust.git/blob - tests/ui/crashes/ice-3747.rs
Auto merge of #6298 - JohnTitor:fix-example, r=llogiq
[rust.git] / tests / ui / crashes / ice-3747.rs
1 /// Test for https://github.com/rust-lang/rust-clippy/issues/3747
2
3 macro_rules! a {
4     ( $pub:tt $($attr:tt)* ) => {
5         $($attr)* $pub fn say_hello() {}
6     };
7 }
8
9 macro_rules! b {
10     () => {
11         a! { pub }
12     };
13 }
14
15 b! {}
16
17 fn main() {}