From 9e4052cc2ee12751ba94909ff479bd03df141ac4 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 7 Jan 2018 14:56:08 +0300 Subject: Test utils --- tests/data/parser/err/0001_item_recovery_in_file.rs | 3 +++ tests/data/parser/err/0001_item_recovery_in_file.txt | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/data/parser/err/0001_item_recovery_in_file.rs create mode 100644 tests/data/parser/err/0001_item_recovery_in_file.txt (limited to 'tests/data/parser/err') diff --git a/tests/data/parser/err/0001_item_recovery_in_file.rs b/tests/data/parser/err/0001_item_recovery_in_file.rs new file mode 100644 index 000000000..98f23de1f --- /dev/null +++ b/tests/data/parser/err/0001_item_recovery_in_file.rs @@ -0,0 +1,3 @@ +if match + +struct S {} \ No newline at end of file diff --git a/tests/data/parser/err/0001_item_recovery_in_file.txt b/tests/data/parser/err/0001_item_recovery_in_file.txt new file mode 100644 index 000000000..730367694 --- /dev/null +++ b/tests/data/parser/err/0001_item_recovery_in_file.txt @@ -0,0 +1,14 @@ +FILE@[0; 21) + ERROR@[0; 10) + err: `expected item` + IDENT@[0; 2) + WHITESPACE@[2; 3) + IDENT@[3; 8) + WHITESPACE@[8; 10) + STRUCT_ITEM@[10; 21) + STRUCT_KW@[10; 16) + WHITESPACE@[16; 17) + IDENT@[17; 18) + WHITESPACE@[18; 19) + L_CURLY@[19; 20) + R_CURLY@[20; 21) -- cgit v1.2.3