From 8b710e95353d9f840f78645c9593a66adb0636b6 Mon Sep 17 00:00:00 2001 From: csmoe <35686186+csmoe@users.noreply.github.com> Date: Wed, 26 Sep 2018 10:01:42 +0800 Subject: generate testsuite for impl_type --- crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.rs | 3 +-- crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.txt | 11 +++++------ 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'crates/ra_syntax/tests/data/parser/err') diff --git a/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.rs b/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.rs index eac922109..829ca1c4b 100644 --- a/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.rs +++ b/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.rs @@ -1,3 +1,2 @@ impl -impl OnceCell { -} +impl OnceCell {} diff --git a/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.txt b/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.txt index 60337d6de..9e26f58a0 100644 --- a/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.txt +++ b/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.txt @@ -1,4 +1,4 @@ -ROOT@[0; 39) +ROOT@[0; 38) IMPL_ITEM@[0; 14) IMPL_KW@[0; 4) TYPE_PARAM_LIST@[4; 14) @@ -17,7 +17,7 @@ ROOT@[0; 39) err: `expected trait or type` err: `expected `{`` WHITESPACE@[14; 15) - IMPL_ITEM@[15; 38) + IMPL_ITEM@[15; 37) IMPL_KW@[15; 19) TYPE_PARAM_LIST@[19; 22) L_ANGLE@[19; 20) @@ -41,8 +41,7 @@ ROOT@[0; 39) IDENT@[32; 33) "T" R_ANGLE@[33; 34) WHITESPACE@[34; 35) - ITEM_LIST@[35; 38) + ITEM_LIST@[35; 37) L_CURLY@[35; 36) - WHITESPACE@[36; 37) - R_CURLY@[37; 38) - WHITESPACE@[38; 39) + R_CURLY@[36; 37) + WHITESPACE@[37; 38) -- cgit v1.2.3