diff options
| author | Michael Howell <michael@notriddle.com> | 2023-10-05 22:32:37 -0700 | 
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-10-05 22:32:37 -0700 | 
| commit | 1eb2a766417c755f6787358bfc36385a26c4ed31 (patch) | |
| tree | e3a83bd5d6b8d063f8e2a6279bc2601300fcf536 /tests/rustdoc-js/impl-trait.rs | |
| parent | 579be69de9f98f56d92b93820eaf7e6b06b517a5 (diff) | |
| download | rust-1eb2a766417c755f6787358bfc36385a26c4ed31.tar.gz rust-1eb2a766417c755f6787358bfc36385a26c4ed31.zip | |
rustdoc-search: fix bug with multi-item impl trait
Diffstat (limited to 'tests/rustdoc-js/impl-trait.rs')
| -rw-r--r-- | tests/rustdoc-js/impl-trait.rs | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/tests/rustdoc-js/impl-trait.rs b/tests/rustdoc-js/impl-trait.rs index fb8869b46f3..d20fdd60ec9 100644 --- a/tests/rustdoc-js/impl-trait.rs +++ b/tests/rustdoc-js/impl-trait.rs @@ -1,6 +1,9 @@ pub trait Aaaaaaa {} +pub trait Bbbbbbb {} + impl Aaaaaaa for () {} +impl Bbbbbbb for () {} pub fn bbbbbbb() -> impl Aaaaaaa { () @@ -18,4 +21,7 @@ impl Ccccccc { pub fn fffffff(&self, x: impl Aaaaaaa) -> impl Aaaaaaa { x } + pub fn ggggggg(&self) -> impl Aaaaaaa + Bbbbbbb { + () + } } | 
