diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-04-18 23:11:42 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-04-18 23:11:42 +0200 |
| commit | 8d0e10cfbe9ca114a6470b6a26aa878ace5c03ba (patch) | |
| tree | 0193dd1a97b7f80dfb19b936ce55e91f9c1d0eb4 /src/test/rustdoc-js-std/parser-errors.js | |
| parent | 5c6c1e110f6c249ee21c6b4eebc39d9635d6d565 (diff) | |
| download | rust-8d0e10cfbe9ca114a6470b6a26aa878ace5c03ba.tar.gz rust-8d0e10cfbe9ca114a6470b6a26aa878ace5c03ba.zip | |
Correctly handle single `:`
Diffstat (limited to 'src/test/rustdoc-js-std/parser-errors.js')
| -rw-r--r-- | src/test/rustdoc-js-std/parser-errors.js | 10 |
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 9d92f5ddfd3..779ab867c12 100644 --- a/src/test/rustdoc-js-std/parser-errors.js +++ b/src/test/rustdoc-js-std/parser-errors.js @@ -34,6 +34,7 @@ const QUERY = [ "a<>:", "a,:", " a<> :", + "mod : :", ]; const PARSED = [ @@ -352,4 +353,13 @@ const PARSED = [ userQuery: "a<> :", error: 'Unexpected `<` in type filter', }, + { + elems: [], + foundElems: 0, + original: "mod : :", + returned: [], + typeFilter: -1, + userQuery: "mod : :", + error: 'Unexpected `:`', + }, ]; |
