summaryrefslogtreecommitdiffstats
path: root/tests/ui/structs-enums/uninstantiable-struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/structs-enums/uninstantiable-struct.rs')
-rw-r--r--tests/ui/structs-enums/uninstantiable-struct.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/structs-enums/uninstantiable-struct.rs b/tests/ui/structs-enums/uninstantiable-struct.rs
new file mode 100644
index 000000000..b24effe5a
--- /dev/null
+++ b/tests/ui/structs-enums/uninstantiable-struct.rs
@@ -0,0 +1,4 @@
+// run-pass
+pub struct Z(#[allow(unused_tuple_struct_fields)] &'static Z);
+
+pub fn main() {}