From 459241f272748ff2e57b2c7e84f5a04f78d67edb Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 24 Jul 2019 12:38:21 +0300 Subject: move syntax tests to unit tests --- .../parser/err/0027_incomplere_where_for.txt | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 crates/ra_syntax/test_data/parser/err/0027_incomplere_where_for.txt (limited to 'crates/ra_syntax/test_data/parser/err/0027_incomplere_where_for.txt') diff --git a/crates/ra_syntax/test_data/parser/err/0027_incomplere_where_for.txt b/crates/ra_syntax/test_data/parser/err/0027_incomplere_where_for.txt new file mode 100644 index 000000000..061e6fb31 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0027_incomplere_where_for.txt @@ -0,0 +1,28 @@ +SOURCE_FILE@[0; 30) + FN_DEF@[0; 29) + FN_KW@[0; 2) "fn" + WHITESPACE@[2; 3) " " + NAME@[3; 6) + IDENT@[3; 6) "foo" + PARAM_LIST@[6; 8) + L_PAREN@[6; 7) "(" + R_PAREN@[7; 8) ")" + WHITESPACE@[8; 13) "\n " + WHERE_CLAUSE@[13; 26) + WHERE_KW@[13; 18) "where" + WHITESPACE@[18; 19) " " + WHERE_PRED@[19; 26) + FOR_TYPE@[19; 26) + FOR_KW@[19; 22) "for" + TYPE_PARAM_LIST@[22; 26) + L_ANGLE@[22; 23) "<" + LIFETIME_PARAM@[23; 25) + LIFETIME@[23; 25) "\'a" + R_ANGLE@[25; 26) ">" + WHITESPACE@[26; 27) "\n" + BLOCK@[27; 29) + L_CURLY@[27; 28) "{" + R_CURLY@[28; 29) "}" + WHITESPACE@[29; 30) "\n" +error 26: expected a path +error 26: expected colon -- cgit v1.2.3