|
8 | 8 | pub struct Struct;
|
9 | 9 |
|
10 | 10 | pub trait Trait<Rhs = Self> {
|
11 |
| - // There should only be one `<a>` (not linking to reference primitive). |
12 |
| - // @count - '//*[@id="tymethod.method"]/*[@class="code-header"]/a' 1 |
| 11 | + // @count - '//*[@id="tymethod.method"]/*[@class="code-header"]/a' 2 |
13 | 12 | // @has - '//*[@id="tymethod.method"]/*[@class="code-header"]/a' 'method'
|
| 13 | + // @has - '//*[@id="tymethod.method"]/*[@class="code-header"]/a' '&' |
14 | 14 | fn method(&self, other: &Rhs);
|
15 |
| - // There should only be one `<a>` (method and `*const`). |
16 | 15 | // @count - '//*[@id="tymethod.method2"]/*[@class="code-header"]/a' 2
|
17 | 16 | // @has - '//*[@id="tymethod.method2"]/*[@class="code-header"]/a' 'method2'
|
18 | 17 | // @has - '//*[@id="tymethod.method2"]/*[@class="code-header"]/a' '*const'
|
@@ -41,24 +40,25 @@ pub trait Trait<Rhs = Self> {
|
41 | 40 | // @has - '//*[@id="tymethod.tuple2"]/*[@class="code-header"]/a' 'tuple2'
|
42 | 41 | // @has - '//*[@id="tymethod.tuple2"]/*[@class="code-header"]/a' 'Struct'
|
43 | 42 | fn tuple2(&self, other: (Struct, Rhs));
|
44 |
| - // There should be only one `<a>` (just the method). |
45 |
| - // @count - '//*[@id="tymethod.slice"]/*[@class="code-header"]/a' 1 |
| 43 | + // @count - '//*[@id="tymethod.slice"]/*[@class="code-header"]/a' 2 |
46 | 44 | // @has - '//*[@id="tymethod.slice"]/*[@class="code-header"]/a' 'slice'
|
| 45 | + // @has - '//*[@id="tymethod.slice"]/*[@class="code-header"]/a' '&[Rhs]' |
47 | 46 | fn slice(&self, other: &[Rhs]);
|
| 47 | + // @count - '//*[@id="tymethod.ref_array"]/*[@class="code-header"]/a' 2 |
| 48 | + // @has - '//*[@id="tymethod.ref_array"]/*[@class="code-header"]/a' 'ref_array' |
| 49 | + // @has - '//*[@id="tymethod.ref_array"]/*[@class="code-header"]/a' '[Rhs; 2]' |
| 50 | + fn ref_array(&self, other: &[Rhs; 2]); |
48 | 51 | // There should be two `<a>` (method and `Struct`).
|
49 | 52 | // @count - '//*[@id="tymethod.slice2"]/*[@class="code-header"]/a' 2
|
50 | 53 | // @has - '//*[@id="tymethod.slice2"]/*[@class="code-header"]/a' 'slice2'
|
51 | 54 | // @has - '//*[@id="tymethod.slice2"]/*[@class="code-header"]/a' 'Struct'
|
52 | 55 | fn slice2(&self, other: &[Struct]);
|
53 |
| - // There should be two `<a>` (the method and one for the array primitive). |
54 | 56 | // @count - '//*[@id="tymethod.array"]/*[@class="code-header"]/a' 2
|
55 | 57 | // @has - '//*[@id="tymethod.array"]/*[@class="code-header"]/a' 'array'
|
56 |
| - // @has - '//*[@id="tymethod.array"]/*[@class="code-header"]/a' '2' |
| 58 | + // @has - '//*[@id="tymethod.array"]/*[@class="code-header"]/a' '[Rhs; 2]' |
57 | 59 | fn array(&self, other: [Rhs; 2]);
|
58 |
| - // There should be two `<a>` (method, `Struct` and array primitive). |
59 |
| - // @count - '//*[@id="tymethod.array2"]/*[@class="code-header"]/a' 3 |
| 60 | + // @count - '//*[@id="tymethod.array2"]/*[@class="code-header"]/a' 2 |
60 | 61 | // @has - '//*[@id="tymethod.array2"]/*[@class="code-header"]/a' 'array2'
|
61 | 62 | // @has - '//*[@id="tymethod.array2"]/*[@class="code-header"]/a' 'Struct'
|
62 |
| - // @has - '//*[@id="tymethod.array2"]/*[@class="code-header"]/a' '2' |
63 | 63 | fn array2(&self, other: [Struct; 2]);
|
64 | 64 | }
|
0 commit comments