mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +00:00
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`
This commit is contained in:
commit
a015c86a1d
15
src/test/rustdoc/where-clause-order.rs
Normal file
15
src/test/rustdoc/where-clause-order.rs
Normal file
@ -0,0 +1,15 @@
|
||||
#![crate_name = "foo"]
|
||||
|
||||
pub trait SomeTrait<Rhs = Self>
|
||||
where Rhs: ?Sized
|
||||
{}
|
||||
|
||||
// @has 'foo/trait.SomeTrait.html'
|
||||
// @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, "
|
||||
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
|
||||
{}
|
Loading…
Reference in New Issue
Block a user