From ce3462ce8fed8bb86d887643479c73908fc326a3 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 31 Jul 2018 20:38:36 +0300 Subject: struct literals --- tests/data/parser/inline/0061_struct_lit.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/data/parser/inline/0061_struct_lit.rs (limited to 'tests/data/parser/inline/0061_struct_lit.rs') diff --git a/tests/data/parser/inline/0061_struct_lit.rs b/tests/data/parser/inline/0061_struct_lit.rs new file mode 100644 index 000000000..eb711f68a --- /dev/null +++ b/tests/data/parser/inline/0061_struct_lit.rs @@ -0,0 +1,5 @@ +fn foo() { + S {}; + S { x, y: 32, }; + S { x, y: 32, ..Default::default() }; +} -- cgit v1.2.3