diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2023-04-03 09:15:05 +0000 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2023-04-05 15:59:29 +0000 |
| commit | dc04b085f4cfb565e53af794f862b4d2469e7ac5 (patch) | |
| tree | 08ec85954cdd88340e19b68c9b06f70aa284b7c1 | |
| parent | 931fd8539e5234c3db686664f5f2fad69c540808 (diff) | |
| download | rust-dc04b085f4cfb565e53af794f862b4d2469e7ac5.tar.gz rust-dc04b085f4cfb565e53af794f862b4d2469e7ac5.zip | |
Bless rustdoc test with swapped ids
The ids for the multiple `Item` associated type elements are swapped between the first and second impl.
| -rw-r--r-- | tests/rustdoc/issue-25001.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rustdoc/issue-25001.rs b/tests/rustdoc/issue-25001.rs index c97b35adaf2..268fae59496 100644 --- a/tests/rustdoc/issue-25001.rs +++ b/tests/rustdoc/issue-25001.rs @@ -21,14 +21,14 @@ impl Foo<u32> { } impl<T> Bar for Foo<T> { - // @has - '//*[@id="associatedtype.Item"]//h4[@class="code-header"]' 'type Item = T' + // @has - '//*[@id="associatedtype.Item-1"]//h4[@class="code-header"]' 'type Item = T' type Item=T; // @has - '//*[@id="method.quux"]//h4[@class="code-header"]' 'fn quux(self)' fn quux(self) {} } impl<'a, T> Bar for &'a Foo<T> { - // @has - '//*[@id="associatedtype.Item-1"]//h4[@class="code-header"]' "type Item = &'a T" + // @has - '//*[@id="associatedtype.Item"]//h4[@class="code-header"]' "type Item = &'a T" type Item=&'a T; // @has - '//*[@id="method.quux-1"]//h4[@class="code-header"]' 'fn quux(self)' |
