diff options
author | Aleksey Kladov <[email protected]> | 2018-07-31 18:38:36 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-07-31 18:38:36 +0100 |
commit | ce3462ce8fed8bb86d887643479c73908fc326a3 (patch) | |
tree | f6999e706291b7e39da48259728efd8ec85c848c /tests/data/parser/inline/0061_struct_lit.rs | |
parent | eba1e8a334a707645701db48fddc61acad7b2dbc (diff) |
struct literals
Diffstat (limited to 'tests/data/parser/inline/0061_struct_lit.rs')
-rw-r--r-- | tests/data/parser/inline/0061_struct_lit.rs | 5 |
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 @@ | |||
1 | fn foo() { | ||
2 | S {}; | ||
3 | S { x, y: 32, }; | ||
4 | S { x, y: 32, ..Default::default() }; | ||
5 | } | ||