about summary refs log tree commit diff
path: root/tests/ui/empty_structs_with_brackets.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/empty_structs_with_brackets.fixed')
-rw-r--r--tests/ui/empty_structs_with_brackets.fixed8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/empty_structs_with_brackets.fixed b/tests/ui/empty_structs_with_brackets.fixed
index b1600862a8f..419cf2354f8 100644
--- a/tests/ui/empty_structs_with_brackets.fixed
+++ b/tests/ui/empty_structs_with_brackets.fixed
@@ -23,4 +23,12 @@ struct MyTupleStruct(usize, String); // should not trigger lint
 struct MySingleTupleStruct(usize); // should not trigger lint
 struct MyUnitLikeStruct; // should not trigger lint
 
+macro_rules! empty_struct {
+    ($s:ident) => {
+        struct $s {}
+    };
+}
+
+empty_struct!(FromMacro);
+
 fn main() {}