1
Fork 0

rustdoc-search: fix bug with multi-item impl trait

This commit is contained in:
Michael Howell 2023-10-05 22:32:37 -07:00
parent 579be69de9
commit 1eb2a76641
3 changed files with 21 additions and 6 deletions

View file

@ -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 {
()
}
}