about summary refs log tree commit diff
path: root/src/test/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rustdoc-js-std/parser-errors.js')
-rw-r--r--src/test/rustdoc-js-std/parser-errors.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/rustdoc-js-std/parser-errors.js b/src/test/rustdoc-js-std/parser-errors.js
index ae5145e8322..42d69ed3fe0 100644
--- a/src/test/rustdoc-js-std/parser-errors.js
+++ b/src/test/rustdoc-js-std/parser-errors.js
@@ -21,6 +21,7 @@ const QUERY = [
     "a-bb",
     "a>bb",
     "ab'",
+    "a->",
 ];
 
 const PARSED = [
@@ -222,4 +223,13 @@ const PARSED = [
         userQuery: "ab'",
         error: "Unexpected `'`",
     },
+    {
+        elems: [],
+        foundElems: 0,
+        original: "a->",
+        returned: [],
+        typeFilter: -1,
+        userQuery: "a->",
+        error: "Expected at least one item after `->`",
+    },
 ];