diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-03-04 15:24:38 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-04 15:24:38 +0530 |
| commit | 2fc4935cdbb53df78fa902c61d3cf722d077adec (patch) | |
| tree | 2f73baf1b602a2e81a8d31a8ec54abc407c634ad /tests/rustdoc-js-std/parser-errors.js | |
| parent | 832dab3798cb25512cc6ed43f105a40f6a3db4eb (diff) | |
| parent | 823671589f3de683d6d2f46fa6c0259d08f6cda5 (diff) | |
| download | rust-2fc4935cdbb53df78fa902c61d3cf722d077adec.tar.gz rust-2fc4935cdbb53df78fa902c61d3cf722d077adec.zip | |
Rollup merge of #108656 - GuillaumeGomez:rustdoc-search-unclosed-generic, r=notriddle
Rustdoc search: Emit an error for unclosed generic Now, search like `a<` will error as it should (and as written in the eBNF). r? `@notriddle`
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
| -rw-r--r-- | tests/rustdoc-js-std/parser-errors.js | 10 |
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 `<`", + }, ]; |
