diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-01-01 10:50:55 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-01-01 10:50:55 +0100 |
| commit | ec0c83821e590aaadb9446cf7c7a5f9453f0de1b (patch) | |
| tree | 078d9e1b76a4bdca7c3fb70ea71d6b39a0771571 | |
| parent | 60f3bd78eeac87ad474916d36d29ed7e5084b25b (diff) | |
| download | rust-ec0c83821e590aaadb9446cf7c7a5f9453f0de1b.tar.gz rust-ec0c83821e590aaadb9446cf7c7a5f9453f0de1b.zip | |
Add test for where clause order
| -rw-r--r-- | src/test/rustdoc/where-clause-order.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/rustdoc/where-clause-order.rs b/src/test/rustdoc/where-clause-order.rs new file mode 100644 index 00000000000..d0d89cbf126 --- /dev/null +++ b/src/test/rustdoc/where-clause-order.rs @@ -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 +{} |
