mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
6b59675449
It does not seem to be necessary
17 lines
247 B
Rust
17 lines
247 B
Rust
/// 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() {}
|