2024-08-24 17:43:34 +00:00
|
|
|
// Test for https://github.com/rust-lang/rust-clippy/issues/3747
|
2019-02-23 17:29:30 +00:00
|
|
|
|
|
|
|
macro_rules! a {
|
|
|
|
( $pub:tt $($attr:tt)* ) => {
|
|
|
|
$($attr)* $pub fn say_hello() {}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! b {
|
|
|
|
() => {
|
|
|
|
a! { pub }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
b! {}
|
|
|
|
|
|
|
|
fn main() {}
|