Forbid rustdoc search query to end with ->

This commit is contained in:
Guillaume Gomez 2022-03-28 15:08:47 +02:00
parent 8e29ed43d9
commit 1f5c4c2b30
2 changed files with 13 additions and 0 deletions

View file

@ -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 `->`",
},
];