diff options
author | darksv <[email protected]> | 2018-09-14 22:32:24 +0100 |
---|---|---|
committer | darksv <[email protected]> | 2018-09-14 22:33:29 +0100 |
commit | ecbfe68bf4316f145ac52856d324b399224e7339 (patch) | |
tree | 1dd427f7837722ae2ff5e5775efad12e8bc0b9e8 /crates/libsyntax2/tests/data | |
parent | 100968b68999231368fbacf62e8b8f242fbfdd3a (diff) |
add missing files with inline tests
Diffstat (limited to 'crates/libsyntax2/tests/data')
-rw-r--r-- | crates/libsyntax2/tests/data/parser/inline/0109_struct_items.rs | 8 | ||||
-rw-r--r-- | crates/libsyntax2/tests/data/parser/inline/0110_union_items.rs | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/crates/libsyntax2/tests/data/parser/inline/0109_struct_items.rs b/crates/libsyntax2/tests/data/parser/inline/0109_struct_items.rs new file mode 100644 index 000000000..693e3f3ee --- /dev/null +++ b/crates/libsyntax2/tests/data/parser/inline/0109_struct_items.rs | |||
@@ -0,0 +1,8 @@ | |||
1 | struct Foo; | ||
2 | struct Foo {} | ||
3 | struct Foo(); | ||
4 | struct Foo(String, usize); | ||
5 | struct Foo { | ||
6 | a: i32, | ||
7 | b: f32, | ||
8 | } | ||
diff --git a/crates/libsyntax2/tests/data/parser/inline/0110_union_items.rs b/crates/libsyntax2/tests/data/parser/inline/0110_union_items.rs new file mode 100644 index 000000000..b7dd610d8 --- /dev/null +++ b/crates/libsyntax2/tests/data/parser/inline/0110_union_items.rs | |||
@@ -0,0 +1,5 @@ | |||
1 | union Foo {} | ||
2 | union Foo { | ||
3 | a: i32, | ||
4 | b: f32, | ||
5 | } | ||