{
+ // @count - '//*[@id="tymethod.method"]/*[@class="code-header"]/a' 2
+ // @has - '//*[@id="tymethod.method"]/*[@class="code-header"]/a' 'method'
+ // @has - '//*[@id="tymethod.method"]/*[@class="code-header"]/a' '&'
+ fn method(&self, other: &Rhs);
+ // @count - '//*[@id="tymethod.method2"]/*[@class="code-header"]/a' 2
+ // @has - '//*[@id="tymethod.method2"]/*[@class="code-header"]/a' 'method2'
+ // @has - '//*[@id="tymethod.method2"]/*[@class="code-header"]/a' '*const'
+ fn method2(&self, other: *const Rhs);
+ // There should be only one `` (just the method).
+ // @count - '//*[@id="tymethod.bar"]/*[@class="code-header"]/a' 1
+ // @has - '//*[@id="tymethod.bar"]/*[@class="code-header"]/a' 'bar'
+ fn bar(&self, other: Rhs);
+ // There should be two `` (method and `Struct`).
+ // @count - '//*[@id="tymethod.foo"]/*[@class="code-header"]/a' 2
+ // @has - '//*[@id="tymethod.foo"]/*[@class="code-header"]/a' 'foo'
+ // @has - '//*[@id="tymethod.foo"]/*[@class="code-header"]/a' 'Struct'
+ fn foo(&self, other: &Struct);
+ // There should be three `` (method, `Struct` and `*const`).
+ // @count - '//*[@id="tymethod.foo2"]/*[@class="code-header"]/a' 3
+ // @has - '//*[@id="tymethod.foo2"]/*[@class="code-header"]/a' 'foo2'
+ // @has - '//*[@id="tymethod.foo2"]/*[@class="code-header"]/a' 'Struct'
+ // @has - '//*[@id="tymethod.foo2"]/*[@class="code-header"]/a' '*const'
+ fn foo2(&self, other: *const Struct);
+ // There should be only one `` (just the method).
+ // @count - '//*[@id="tymethod.tuple"]/*[@class="code-header"]/a' 1
+ // @has - '//*[@id="tymethod.tuple"]/*[@class="code-header"]/a' 'tuple'
+ fn tuple(&self, other: (Rhs, Rhs));
+ // There should be two `` (method and `Struct`).
+ // @count - '//*[@id="tymethod.tuple2"]/*[@class="code-header"]/a' 2
+ // @has - '//*[@id="tymethod.tuple2"]/*[@class="code-header"]/a' 'tuple2'
+ // @has - '//*[@id="tymethod.tuple2"]/*[@class="code-header"]/a' 'Struct'
+ fn tuple2(&self, other: (Struct, Rhs));
+ // @count - '//*[@id="tymethod.slice"]/*[@class="code-header"]/a' 2
+ // @has - '//*[@id="tymethod.slice"]/*[@class="code-header"]/a' 'slice'
+ // @has - '//*[@id="tymethod.slice"]/*[@class="code-header"]/a' '&[Rhs]'
+ fn slice(&self, other: &[Rhs]);
+ // @count - '//*[@id="tymethod.ref_array"]/*[@class="code-header"]/a' 2
+ // @has - '//*[@id="tymethod.ref_array"]/*[@class="code-header"]/a' 'ref_array'
+ // @has - '//*[@id="tymethod.ref_array"]/*[@class="code-header"]/a' '[Rhs; 2]'
+ fn ref_array(&self, other: &[Rhs; 2]);
+ // There should be two `` (method and `Struct`).
+ // @count - '//*[@id="tymethod.slice2"]/*[@class="code-header"]/a' 2
+ // @has - '//*[@id="tymethod.slice2"]/*[@class="code-header"]/a' 'slice2'
+ // @has - '//*[@id="tymethod.slice2"]/*[@class="code-header"]/a' 'Struct'
+ fn slice2(&self, other: &[Struct]);
+ // @count - '//*[@id="tymethod.array"]/*[@class="code-header"]/a' 2
+ // @has - '//*[@id="tymethod.array"]/*[@class="code-header"]/a' 'array'
+ // @has - '//*[@id="tymethod.array"]/*[@class="code-header"]/a' '[Rhs; 2]'
+ fn array(&self, other: [Rhs; 2]);
+ // @count - '//*[@id="tymethod.array2"]/*[@class="code-header"]/a' 2
+ // @has - '//*[@id="tymethod.array2"]/*[@class="code-header"]/a' 'array2'
+ // @has - '//*[@id="tymethod.array2"]/*[@class="code-header"]/a' 'Struct'
+ fn array2(&self, other: [Struct; 2]);
+}
diff --git a/tests/rustdoc/slice-links.link_slice_generic.html b/tests/rustdoc/slice-links.link_slice_generic.html
index 1d0f2bf75a233..fe79ca7a82da3 100644
--- a/tests/rustdoc/slice-links.link_slice_generic.html
+++ b/tests/rustdoc/slice-links.link_slice_generic.html
@@ -1 +1 @@
-pub fn beta<T>() -> &'static [T]
\ No newline at end of file
+pub fn beta<T>() -> &'static [T]
\ No newline at end of file
diff --git a/tests/rustdoc/tuples.link1_t.html b/tests/rustdoc/tuples.link1_t.html
index 1cbaec05733b5..595a89ff798d6 100644
--- a/tests/rustdoc/tuples.link1_t.html
+++ b/tests/rustdoc/tuples.link1_t.html
@@ -1 +1 @@
-pub fn tuple1_t<T>(x: (T,)) -> (T,)
\ No newline at end of file
+pub fn tuple1_t<T>(x: (T,)) -> (T,)
\ No newline at end of file
diff --git a/tests/rustdoc/tuples.link2_t.html b/tests/rustdoc/tuples.link2_t.html
index 2477aa6be9d39..ee126fd034392 100644
--- a/tests/rustdoc/tuples.link2_t.html
+++ b/tests/rustdoc/tuples.link2_t.html
@@ -1 +1 @@
-pub fn tuple2_t<T>(x: (T, T)) -> (T, T)
\ No newline at end of file
+pub fn tuple2_t<T>(x: (T, T)) -> (T, T)
\ No newline at end of file
diff --git a/tests/rustdoc/tuples.link2_tu.html b/tests/rustdoc/tuples.link2_tu.html
index b02f8dd8d6530..b0dcf977a4372 100644
--- a/tests/rustdoc/tuples.link2_tu.html
+++ b/tests/rustdoc/tuples.link2_tu.html
@@ -1 +1 @@
-pub fn tuple2_tu<T, U>(x: (T, U)) -> (T, U)
\ No newline at end of file
+pub fn tuple2_tu<T, U>(x: (T, U)) -> (T, U)
\ No newline at end of file
diff --git a/tests/rustdoc/where.golf_type_alias_decl.html b/tests/rustdoc/where.golf_type_alias_decl.html
index 8da5402f90073..9cd67892a4894 100644
--- a/tests/rustdoc/where.golf_type_alias_decl.html
+++ b/tests/rustdoc/where.golf_type_alias_decl.html
@@ -1,2 +1,2 @@
pub type Golf<T>where
- T: Clone, = (T, T);
\ No newline at end of file
+ T: Clone, = (T, T);
\ No newline at end of file
diff --git a/tests/rustdoc/whitespace-after-where-clause.enum.html b/tests/rustdoc/whitespace-after-where-clause.enum.html
index 20b60b68e88cf..db3d3999dd56c 100644
--- a/tests/rustdoc/whitespace-after-where-clause.enum.html
+++ b/tests/rustdoc/whitespace-after-where-clause.enum.html
@@ -1,5 +1,5 @@
pub enum Cow<'a, B>where
B: ToOwned<dyn Clone> + ?Sized + 'a,{
- Borrowed(&'a B),
+ Borrowed(&'a B),
Whatever(u32),
}
\ No newline at end of file
diff --git a/tests/rustdoc/whitespace-after-where-clause.enum2.html b/tests/rustdoc/whitespace-after-where-clause.enum2.html
index 065ce757de1ab..d1d5dea582bea 100644
--- a/tests/rustdoc/whitespace-after-where-clause.enum2.html
+++ b/tests/rustdoc/whitespace-after-where-clause.enum2.html
@@ -1,4 +1,4 @@
pub enum Cow2<'a, B: ?Sized + ToOwned<dyn Clone> + 'a> {
- Borrowed(&'a B),
+ Borrowed(&'a B),
Whatever(u32),
}
\ No newline at end of file
diff --git a/tests/rustdoc/whitespace-after-where-clause.struct.html b/tests/rustdoc/whitespace-after-where-clause.struct.html
index 948ddc499da8a..d62432fe562f7 100644
--- a/tests/rustdoc/whitespace-after-where-clause.struct.html
+++ b/tests/rustdoc/whitespace-after-where-clause.struct.html
@@ -1,5 +1,5 @@
pub struct Struct<'a, B>where
B: ToOwned<dyn Clone> + ?Sized + 'a,{
- pub a: &'a B,
+ pub a: &'a B,
pub b: u32,
}
\ No newline at end of file
diff --git a/tests/rustdoc/whitespace-after-where-clause.struct2.html b/tests/rustdoc/whitespace-after-where-clause.struct2.html
index c647e8d71218e..9e13bc688fdda 100644
--- a/tests/rustdoc/whitespace-after-where-clause.struct2.html
+++ b/tests/rustdoc/whitespace-after-where-clause.struct2.html
@@ -1,4 +1,4 @@
pub struct Struct2<'a, B: ?Sized + ToOwned<dyn Clone> + 'a> {
- pub a: &'a B,
+ pub a: &'a B,
pub b: u32,
}
\ No newline at end of file