aboutsummaryrefslogtreecommitdiff
path: root/tests/data/parser/inline/0061_struct_lit.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-07-31 18:38:36 +0100
committerAleksey Kladov <[email protected]>2018-07-31 18:38:36 +0100
commitce3462ce8fed8bb86d887643479c73908fc326a3 (patch)
treef6999e706291b7e39da48259728efd8ec85c848c /tests/data/parser/inline/0061_struct_lit.rs
parenteba1e8a334a707645701db48fddc61acad7b2dbc (diff)
struct literals
Diffstat (limited to 'tests/data/parser/inline/0061_struct_lit.rs')
-rw-r--r--tests/data/parser/inline/0061_struct_lit.rs5
1 files changed, 5 insertions, 0 deletions
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 @@
1fn foo() {
2 S {};
3 S { x, y: 32, };
4 S { x, y: 32, ..Default::default() };
5}