Forbid rustdoc search query to end with ->
This commit is contained in:
parent
8e29ed43d9
commit
1f5c4c2b30
2 changed files with 13 additions and 0 deletions
|
@ -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 `->`",
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue