]> git.lizzy.rs Git - rust.git/blob - tests/ui/auxiliary/test_macro.rs
Add `unnecessary_safety_doc` lint
[rust.git] / tests / ui / auxiliary / test_macro.rs
1 pub trait A {}
2
3 macro_rules! __implicit_hasher_test_macro {
4     (impl< $($impl_arg:tt),* > for $kind:ty where $($bounds:tt)*) => {
5         __implicit_hasher_test_macro!( ($($impl_arg),*) ($kind) ($($bounds)*) );
6     };
7
8     (($($impl_arg:tt)*) ($($kind_arg:tt)*) ($($bounds:tt)*)) => {
9         impl< $($impl_arg)* > test_macro::A for $($kind_arg)* where $($bounds)* { }
10     };
11 }