2024-09-24 04:58:04 -05:00
|
|
|
// Test for https://github.com/rust-lang/rust-clippy/issues/3747
|
2019-02-23 11:29:30 -06:00
|
|
|
|
|
|
|
macro_rules! a {
|
|
|
|
( $pub:tt $($attr:tt)* ) => {
|
|
|
|
$($attr)* $pub fn say_hello() {}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! b {
|
|
|
|
() => {
|
|
|
|
a! { pub }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
b! {}
|
|
|
|
|
|
|
|
fn main() {}
|