Skip to content

Commit a015c86

Browse files
authored
Rollup merge of #92332 - GuillaumeGomez:where-clause-order, r=jsha
Add test for where clause order I didn't use ``@snapshot`` because of the ` ` characters, it's much simpler doing it through rustdoc-gui testsuite. r? `@camelid`
2 parents ab7a356 + ec0c838 commit a015c86

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#![crate_name = "foo"]
2+
3+
pub trait SomeTrait<Rhs = Self>
4+
where Rhs: ?Sized
5+
{}
6+
7+
// @has 'foo/trait.SomeTrait.html'
8+
// @has - "//div[@id='impl-SomeTrait%3C(A%2C%20B%2C%20C%2C%20D%2C%20E)%3E-for-(A%2C%20B%2C%20C%2C%20D%2C%20E)']/h3" "impl<A, B, C, D, E> SomeTrait<(A, B, C, D, E)> for (A, B, C, D, E) where A: PartialOrd<A> + PartialEq<A>, B: PartialOrd<B> + PartialEq<B>, C: PartialOrd<C> + PartialEq<C>, D: PartialOrd<D> + PartialEq<D>, E: PartialOrd<E> + PartialEq<E> + ?Sized, "
9+
impl<A, B, C, D, E> SomeTrait<(A, B, C, D, E)> for (A, B, C, D, E) where
10+
A: PartialOrd<A> + PartialEq<A>,
11+
B: PartialOrd<B> + PartialEq<B>,
12+
C: PartialOrd<C> + PartialEq<C>,
13+
D: PartialOrd<D> + PartialEq<D>,
14+
E: PartialOrd<E> + PartialEq<E> + ?Sized
15+
{}

0 commit comments

Comments
 (0)