about summary refs log tree commit diff
path: root/tests/rustdoc-gui/src/lib2/another_mod
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2024-08-06 07:36:12 -0700
committerMichael Howell <michael@notriddle.com>2024-08-06 07:36:12 -0700
commit3a183256ad74eadc3c96ed337b70c1ad8897035f (patch)
tree704d9de2ca75fcd795923ed10eb27f41759f3728 /tests/rustdoc-gui/src/lib2/another_mod
parent83e9b93c90bcd7f52d17d09b52e3a2eff707c46a (diff)
rustdoc-search: account for numeric disambiguators on impls
Fixes #128676
Diffstat (limited to 'tests/rustdoc-gui/src/lib2/another_mod')
-rw-r--r--tests/rustdoc-gui/src/lib2/another_mod/mod.rs20
1 files changed, 19 insertions, 1 deletions
diff --git a/tests/rustdoc-gui/src/lib2/another_mod/mod.rs b/tests/rustdoc-gui/src/lib2/another_mod/mod.rs
index 9a4f007a2f0..77f83d29766 100644
--- a/tests/rustdoc-gui/src/lib2/another_mod/mod.rs
+++ b/tests/rustdoc-gui/src/lib2/another_mod/mod.rs
@@ -1 +1,19 @@
-pub fn tadam() {}
+pub struct MultiImplBlockStruct;
+
+impl MultiImplBlockStruct {
+    pub fn first_fn() {}
+}
+
+impl MultiImplBlockStruct {
+    pub fn second_fn(self) -> bool { true }
+}
+
+pub trait MultiImplBlockTrait {
+    fn first_fn();
+    fn second_fn(self) -> u32;
+}
+
+impl MultiImplBlockTrait for MultiImplBlockStruct {
+    fn first_fn() {}
+    fn second_fn(self) -> u32 { 1 }
+}