diff options
Diffstat (limited to 'tests/ui/anon-params/auxiliary/anon-params-edition-hygiene.rs')
-rw-r--r-- | tests/ui/anon-params/auxiliary/anon-params-edition-hygiene.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/anon-params/auxiliary/anon-params-edition-hygiene.rs b/tests/ui/anon-params/auxiliary/anon-params-edition-hygiene.rs new file mode 100644 index 000000000..aa4221bec --- /dev/null +++ b/tests/ui/anon-params/auxiliary/anon-params-edition-hygiene.rs @@ -0,0 +1,12 @@ +// edition:2015 + +#[macro_export] +macro_rules! generate_trait_2015 { + ($Type: ident) => { + trait Trait { + fn method($Type) {} + } + }; +} + +fn main() {} |