Skip to content

Commit

Permalink
rustdoc-search: add standalone trailing :: test
Browse files Browse the repository at this point in the history
Follow up for #132569
  • Loading branch information
notriddle committed Nov 17, 2024
1 parent 1e0df74 commit fa2e214
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/rustdoc-js/trailing.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// exact-check
const EXPECTED = {
'query': 'inner::',
'others': [
{ 'path': 'trailing::inner', 'name': 'function' },
],
}
3 changes: 3 additions & 0 deletions tests/rustdoc-js/trailing.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub mod inner {
pub fn function() {}
}

0 comments on commit fa2e214

Please sign in to comment.