rustdoc-search: add standalone trailing :: test

Follow up for #132569
This commit is contained in:
Michael Howell 2024-11-17 08:07:16 -07:00
parent 1e0df74445
commit fa2e214a43
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// exact-check
const EXPECTED = {
'query': 'inner::',
'others': [
{ 'path': 'trailing::inner', 'name': 'function' },
],
}

View File

@ -0,0 +1,3 @@
pub mod inner {
pub fn function() {}
}