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 --- .../inline/err/0005_fn_pointer_type_missing_fn.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 crates/ra_syntax/test_data/parser/inline/err/0005_fn_pointer_type_missing_fn.txt (limited to 'crates/ra_syntax/test_data/parser/inline/err/0005_fn_pointer_type_missing_fn.txt') diff --git a/crates/ra_syntax/test_data/parser/inline/err/0005_fn_pointer_type_missing_fn.txt b/crates/ra_syntax/test_data/parser/inline/err/0005_fn_pointer_type_missing_fn.txt new file mode 100644 index 000000000..451f29d39 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/err/0005_fn_pointer_type_missing_fn.txt @@ -0,0 +1,23 @@ +SOURCE_FILE@[0; 20) + TYPE_ALIAS_DEF@[0; 15) + TYPE_KW@[0; 4) "type" + WHITESPACE@[4; 5) " " + NAME@[5; 6) + IDENT@[5; 6) "F" + WHITESPACE@[6; 7) " " + EQ@[7; 8) "=" + WHITESPACE@[8; 9) " " + UNSAFE_KW@[9; 15) "unsafe" + WHITESPACE@[15; 16) " " + ERROR@[16; 17) + L_PAREN@[16; 17) "(" + ERROR@[17; 18) + R_PAREN@[17; 18) ")" + ERROR@[18; 19) + SEMI@[18; 19) ";" + WHITESPACE@[19; 20) "\n" +error 15: expected `fn` +error 15: expected SEMI +error 16: expected an item +error 17: expected an item +error 18: expected an item -- cgit v1.2.3