diff options
Diffstat (limited to 'tests/ui/attributes/issue-40962.rs')
-rw-r--r-- | tests/ui/attributes/issue-40962.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/attributes/issue-40962.rs b/tests/ui/attributes/issue-40962.rs new file mode 100644 index 000000000..7b91c0681 --- /dev/null +++ b/tests/ui/attributes/issue-40962.rs @@ -0,0 +1,11 @@ +// check-pass +macro_rules! m { + ($i:meta) => { + #[derive($i)] + struct S; + } +} + +m!(Clone); + +fn main() {} |