Skip to content

Commit 7a62743

Browse files
committed
rustdoc: add regression test for #140968
1 parent 28724dc commit 7a62743

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// rank doc aliases lower than exact matches
2+
// regression test for <https://github.com/rust-lang/rust/issues/140968>
3+
4+
const EXPECTED = {
5+
'query': 'Foo',
6+
'others': [
7+
{ 'path': 'alias_rank_lower', 'name': 'Foo' },
8+
{ 'path': 'alias_rank_lower', 'name': 'Bar' },
9+
],
10+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#![crate_name = "alias_rank_lower"]
2+
3+
pub struct Foo;
4+
5+
#[doc(alias = "Foo")]
6+
pub struct Bar;

0 commit comments

Comments
 (0)