diff options
| author | Michael Howell <michael@notriddle.com> | 2024-01-06 13:17:51 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2024-03-11 21:22:03 -0700 |
| commit | 7f427f86bd0db622f896bcdce04ce5f20658c071 (patch) | |
| tree | 3b6e8ba782cbe642acea6c3f25770f5e88cb952f /tests/rustdoc-js-std/parser-errors.js | |
| parent | 5aad51d015b8d3f6d823a6bf9dbc8ae3b9fd10c5 (diff) | |
| download | rust-7f427f86bd0db622f896bcdce04ce5f20658c071.tar.gz rust-7f427f86bd0db622f896bcdce04ce5f20658c071.zip | |
rustdoc-search: parse and search with ML-style HOF
Option::map, for example, looks like this:
option<t>, (t -> u) -> option<u>
This syntax searches all of the HOFs in Rust: traits Fn, FnOnce,
and FnMut, and bare fn primitives.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
| -rw-r--r-- | tests/rustdoc-js-std/parser-errors.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rustdoc-js-std/parser-errors.js b/tests/rustdoc-js-std/parser-errors.js index 16d171260da..8efb81841d4 100644 --- a/tests/rustdoc-js-std/parser-errors.js +++ b/tests/rustdoc-js-std/parser-errors.js @@ -114,7 +114,7 @@ const PARSED = [ original: "(p -> p", returned: [], userQuery: "(p -> p", - error: "Unexpected `-` after `(`", + error: "Unclosed `(`", }, { query: "::a::b", @@ -330,7 +330,7 @@ const PARSED = [ original: 'a<->', returned: [], userQuery: 'a<->', - error: 'Unexpected `-` after `<`', + error: 'Unclosed `<`', }, { query: "a<a>:", |
