diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-08-06 20:23:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-06 20:23:40 +0200 |
| commit | 4b29f42ffc2104a74a3e6572d36adfe309e45dbd (patch) | |
| tree | 8ec48f2d76859db28d0d6459a2ca63b6085a3222 /tests/rustdoc-gui/src | |
| parent | fb54b45c3f2b59621736ff40e8673a40c7520f6b (diff) | |
| parent | 3a183256ad74eadc3c96ed337b70c1ad8897035f (diff) | |
| download | rust-4b29f42ffc2104a74a3e6572d36adfe309e45dbd.tar.gz rust-4b29f42ffc2104a74a3e6572d36adfe309e45dbd.zip | |
Rollup merge of #128693 - notriddle:notriddle/impl-disambiguator-2024, r=GuillaumeGomez
rustdoc-search: account for numeric disambiguators on impls Fixes #128676
Diffstat (limited to 'tests/rustdoc-gui/src')
| -rw-r--r-- | tests/rustdoc-gui/src/lib2/another_mod/mod.rs | 20 |
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 } +} |
