From 08f7c69f90bac772c69b3bf34877f3d9a845c541 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 13 Jan 2018 22:00:26 +0300 Subject: G: struct flavors --- tests/data/parser/ok/0016_struct_flavors.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/data/parser/ok/0016_struct_flavors.rs (limited to 'tests/data/parser/ok/0016_struct_flavors.rs') diff --git a/tests/data/parser/ok/0016_struct_flavors.rs b/tests/data/parser/ok/0016_struct_flavors.rs new file mode 100644 index 000000000..69638350c --- /dev/null +++ b/tests/data/parser/ok/0016_struct_flavors.rs @@ -0,0 +1,10 @@ +struct A; +struct B {} +struct C(); + +struct D { + a: u32, + pub b: u32 +} + +struct E(pub x, y,); -- cgit v1.2.3