Skip to content

Commit 8236715

Browse files
Add test for unclosed generic
1 parent 51e9769 commit 8236715

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/rustdoc-js-std/parser-errors.js

+10
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const QUERY = [
3939
"a!!",
4040
"mod:a!",
4141
"a!::a",
42+
"a<",
4243
];
4344

4445
const PARSED = [
@@ -402,4 +403,13 @@ const PARSED = [
402403
userQuery: "a!::a",
403404
error: 'Cannot have associated items in macros',
404405
},
406+
{
407+
elems: [],
408+
foundElems: 0,
409+
original: "a<",
410+
returned: [],
411+
typeFilter: -1,
412+
userQuery: "a<",
413+
error: "Unclosed `<`",
414+
},
405415
];

0 commit comments

Comments
 (0)