summaryrefslogtreecommitdiffstats
path: root/tests/ui/structs-enums/tuple-struct-construct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/structs-enums/tuple-struct-construct.rs')
-rw-r--r--tests/ui/structs-enums/tuple-struct-construct.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/structs-enums/tuple-struct-construct.rs b/tests/ui/structs-enums/tuple-struct-construct.rs
new file mode 100644
index 000000000..fbf97e6b2
--- /dev/null
+++ b/tests/ui/structs-enums/tuple-struct-construct.rs
@@ -0,0 +1,9 @@
+// run-pass
+#[allow(unused_tuple_struct_fields)]
+#[derive(Debug)]
+struct Foo(isize, isize);
+
+pub fn main() {
+ let x = Foo(1, 2);
+ println!("{:?}", x);
+}