]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/auxiliary/use_self_macro.rs
Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup
[rust.git] / src / tools / clippy / tests / ui / auxiliary / use_self_macro.rs
1 macro_rules! use_self {
2     (
3         impl $ty:ident {
4             fn func(&$this:ident) {
5                 [fields($($field:ident)*)]
6             }
7         }
8     ) => (
9         impl  $ty {
10             fn func(&$this) {
11                 let $ty { $($field),* } = $this;
12             }
13         }
14     )
15 }