about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYoung-Flash <dongyang@apache.org>2024-01-11 19:51:45 +0800
committerYoung-Flash <dongyang@apache.org>2024-01-11 19:51:45 +0800
commitafe05fe1d869c1ca759a6604cd486d5acee87f80 (patch)
tree1c7fcdc32fd95c394b6b24e476a0440ebf6b97a7
parente6dd522761ded0e73ff2dfeed2ef598fcb508819 (diff)
downloadrust-afe05fe1d869c1ca759a6604cd486d5acee87f80.tar.gz
rust-afe05fe1d869c1ca759a6604cd486d5acee87f80.zip
fix broken test
-rw-r--r--crates/parser/test_data/parser/err/0036_partial_use.rast41
1 files changed, 17 insertions, 24 deletions
diff --git a/crates/parser/test_data/parser/err/0036_partial_use.rast b/crates/parser/test_data/parser/err/0036_partial_use.rast
index 13e76e68307..ad4bc89e83a 100644
--- a/crates/parser/test_data/parser/err/0036_partial_use.rast
+++ b/crates/parser/test_data/parser/err/0036_partial_use.rast
@@ -22,30 +22,23 @@ SOURCE_FILE
                 IDENT "Error"
         ERROR
           SEMICOLON ";"
-        WHITESPACE "\n"
-        ERROR
-          USE_KW "use"
-        WHITESPACE " "
-        USE_TREE
-          PATH
-            PATH
-              PATH_SEGMENT
-                NAME_REF
-                  IDENT "std"
-            COLON2 "::"
-            PATH_SEGMENT
-              NAME_REF
-                IDENT "io"
-        ERROR
-          SEMICOLON ";"
+  WHITESPACE "\n"
+  USE
+    USE_KW "use"
+    WHITESPACE " "
+    USE_TREE
+      PATH
+        PATH
+          PATH_SEGMENT
+            NAME_REF
+              IDENT "std"
+        COLON2 "::"
+        PATH_SEGMENT
+          NAME_REF
+            IDENT "io"
+    SEMICOLON ";"
   WHITESPACE "\n"
 error 22: expected COMMA
 error 22: expected one of `*`, `::`, `{`, `self`, `super` or an identifier
-error 23: expected COMMA
-error 24: expected one of `*`, `::`, `{`, `self`, `super` or an identifier
-error 27: expected COMMA
-error 35: expected COMMA
-error 35: expected one of `*`, `::`, `{`, `self`, `super` or an identifier
-error 36: expected COMMA
-error 36: expected R_CURLY
-error 36: expected SEMICOLON
+error 23: expected R_CURLY
+error 23: expected SEMICOLON