From 2fb33b2d0d14f09ee06a42bca252dccbf57185e1 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 11 Feb 2018 11:57:05 +0300 Subject: G: placeholder types --- tests/data/parser/inline/0027_placeholder_type.rs | 1 + tests/data/parser/inline/0027_placeholder_type.txt | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/data/parser/inline/0027_placeholder_type.rs create mode 100644 tests/data/parser/inline/0027_placeholder_type.txt (limited to 'tests/data/parser') diff --git a/tests/data/parser/inline/0027_placeholder_type.rs b/tests/data/parser/inline/0027_placeholder_type.rs new file mode 100644 index 000000000..7952dbd57 --- /dev/null +++ b/tests/data/parser/inline/0027_placeholder_type.rs @@ -0,0 +1 @@ +type Placeholder = _; diff --git a/tests/data/parser/inline/0027_placeholder_type.txt b/tests/data/parser/inline/0027_placeholder_type.txt new file mode 100644 index 000000000..ab848836c --- /dev/null +++ b/tests/data/parser/inline/0027_placeholder_type.txt @@ -0,0 +1,13 @@ +FILE@[0; 22) + TYPE_ITEM@[0; 22) + TYPE_KW@[0; 4) + NAME@[4; 17) + WHITESPACE@[4; 5) + IDENT@[5; 16) "Placeholder" + WHITESPACE@[16; 17) + EQ@[17; 18) + PLACEHOLDER_TYPE@[18; 20) + WHITESPACE@[18; 19) + UNDERSCORE@[19; 20) + SEMI@[20; 21) + WHITESPACE@[21; 22) -- cgit v1.2.3