about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-03-02 14:28:15 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-03-03 20:49:25 +0100
commit823671589f3de683d6d2f46fa6c0259d08f6cda5 (patch)
tree9dffcf46af6635bab82a7004340ecec4cbd8d92f /tests/rustdoc-js-std/parser-errors.js
parent51e976948d6b4c3d16998c83b8ffd1497b0b7d8b (diff)
downloadrust-823671589f3de683d6d2f46fa6c0259d08f6cda5.tar.gz
rust-823671589f3de683d6d2f46fa6c0259d08f6cda5.zip
Add test for unclosed generic
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
-rw-r--r--tests/rustdoc-js-std/parser-errors.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/rustdoc-js-std/parser-errors.js b/tests/rustdoc-js-std/parser-errors.js
index 6c5a7770283..98c6f27ca61 100644
--- a/tests/rustdoc-js-std/parser-errors.js
+++ b/tests/rustdoc-js-std/parser-errors.js
@@ -39,6 +39,7 @@ const QUERY = [
     "a!!",
     "mod:a!",
     "a!::a",
+    "a<",
 ];
 
 const PARSED = [
@@ -402,4 +403,13 @@ const PARSED = [
         userQuery: "a!::a",
         error: 'Cannot have associated items in macros',
     },
+    {
+        elems: [],
+        foundElems: 0,
+        original: "a<",
+        returned: [],
+        typeFilter: -1,
+        userQuery: "a<",
+        error: "Unclosed `<`",
+    },
 ];