::Residual> { // Required method fn from_residual(residual: R) -> Self; }'
pub use issue_85454::*;
}
diff --git a/tests/rustdoc/where.SWhere_TraitWhere_item-decl.html b/tests/rustdoc/where.SWhere_TraitWhere_item-decl.html
index 11df902f372..858bc142f66 100644
--- a/tests/rustdoc/where.SWhere_TraitWhere_item-decl.html
+++ b/tests/rustdoc/where.SWhere_TraitWhere_item-decl.html
@@ -1,8 +1,8 @@
pub trait TraitWhere {
- type Item<'a>
where
Self: 'a;
+ type Item<'a>
where Self: 'a;
- fn func(self)
where
Self: Sized,
- { ... }
- fn lines(self) -> Lines<Self>
where
Self: Sized,
- { ... }
+ // Provided methods
+ fn func(self)
where Self: Sized { ... }
+ fn lines(self) -> Lines<Self>
where Self: Sized { ... }
+ fn merge<T>(self, a: T)
where Self: Sized,
T: Sized { ... }
}
\ No newline at end of file
diff --git a/tests/rustdoc/where.rs b/tests/rustdoc/where.rs
index 4c34c7e51d9..af3239b6947 100644
--- a/tests/rustdoc/where.rs
+++ b/tests/rustdoc/where.rs
@@ -41,6 +41,12 @@ fn lines(self) -> Lines
where
Self: Sized,
{ todo!() }
+
+ fn merge(self, a: T)
+ where
+ Self: Sized,
+ T: Sized,
+ { todo!() }
}
// @has foo/struct.Echo.html '//*[@class="impl"]//h3[@class="code-header"]' \
diff --git a/tests/rustdoc/whitespace-after-where-clause.trait.html b/tests/rustdoc/whitespace-after-where-clause.trait.html
index bc3653de52d..8a78e82dc71 100644
--- a/tests/rustdoc/whitespace-after-where-clause.trait.html
+++ b/tests/rustdoc/whitespace-after-where-clause.trait.html
@@ -1,6 +1,7 @@
pub trait ToOwned<T>where
T: Clone,{
type Owned;
+ // Required methods
fn to_owned(&self) -> Self::Owned;
fn whatever(&self) -> T;
}
\ No newline at end of file
diff --git a/tests/rustdoc/whitespace-after-where-clause.trait2.html b/tests/rustdoc/whitespace-after-where-clause.trait2.html
index eda4ca72acc..e6fafde1eff 100644
--- a/tests/rustdoc/whitespace-after-where-clause.trait2.html
+++ b/tests/rustdoc/whitespace-after-where-clause.trait2.html
@@ -1,6 +1,7 @@
pub trait ToOwned2<T: Clone> {
type Owned;
+ // Required methods
fn to_owned(&self) -> Self::Owned;
fn whatever(&self) -> T;
}
\ No newline at end of file