From efac0b9c024ebd960fe0e22ea06c0c6030759bf1 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 11 Oct 2023 11:33:51 +0200 Subject: Add regression test for #115480 --- tests/rustdoc-js/search-non-local-trait-impl.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/rustdoc-js/search-non-local-trait-impl.js (limited to 'tests/rustdoc-js/search-non-local-trait-impl.js') diff --git a/tests/rustdoc-js/search-non-local-trait-impl.js b/tests/rustdoc-js/search-non-local-trait-impl.js new file mode 100644 index 00000000000..9ebeceb69f9 --- /dev/null +++ b/tests/rustdoc-js/search-non-local-trait-impl.js @@ -0,0 +1,9 @@ +// exact-check + +// This test ensures that methods from blanket impls of not available foreign traits +// don't show up in the search results. + +const EXPECTED = { + 'query': 'equivalent', + 'others': [], +}; -- cgit 1.4.1-3-g733a5