diff options
| author | binarycat <binarycat@envs.net> | 2025-09-02 11:41:21 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-10-02 15:28:00 -0500 |
| commit | 2dd00d3391b82dd0928f50589eb37f6fbbe32980 (patch) | |
| tree | 0320eed93f5aa1940b88f16d3cdbbb13fdf627de /tests/rustdoc-js-std/trait-unbox.js | |
| parent | c407d340de1717a88537725c899c153c6fdda051 (diff) | |
| download | rust-2dd00d3391b82dd0928f50589eb37f6fbbe32980.tar.gz rust-2dd00d3391b82dd0928f50589eb37f6fbbe32980.zip | |
fix rustdoc tests broke by trait item filtering
Diffstat (limited to 'tests/rustdoc-js-std/trait-unbox.js')
| -rw-r--r-- | tests/rustdoc-js-std/trait-unbox.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/rustdoc-js-std/trait-unbox.js b/tests/rustdoc-js-std/trait-unbox.js new file mode 100644 index 00000000000..44ddc0c1e75 --- /dev/null +++ b/tests/rustdoc-js-std/trait-unbox.js @@ -0,0 +1,16 @@ +// make sure type-based searches with traits get unboxed too + +const EXPECTED = [ + { + 'query': 'any -> result<box>', + 'others': [ + { 'path': 'std::boxed::Box', 'name': 'downcast' }, + ], + }, + { + 'query': 'split<bufread> -> option<result<vec<u8>>>', + 'others': [ + { 'path': 'std::io::Split', 'name': 'next' }, + ], + }, +]; |
