Skip to content

Commit dc04b08

Browse files
committed
Bless rustdoc test with swapped ids
The ids for the multiple `Item` associated type elements are swapped between the first and second impl.
1 parent 931fd85 commit dc04b08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/rustdoc/issue-25001.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ impl Foo<u32> {
2121
}
2222

2323
impl<T> Bar for Foo<T> {
24-
// @has - '//*[@id="associatedtype.Item"]//h4[@class="code-header"]' 'type Item = T'
24+
// @has - '//*[@id="associatedtype.Item-1"]//h4[@class="code-header"]' 'type Item = T'
2525
type Item=T;
2626

2727
// @has - '//*[@id="method.quux"]//h4[@class="code-header"]' 'fn quux(self)'
2828
fn quux(self) {}
2929
}
3030
impl<'a, T> Bar for &'a Foo<T> {
31-
// @has - '//*[@id="associatedtype.Item-1"]//h4[@class="code-header"]' "type Item = &'a T"
31+
// @has - '//*[@id="associatedtype.Item"]//h4[@class="code-header"]' "type Item = &'a T"
3232
type Item=&'a T;
3333

3434
// @has - '//*[@id="method.quux-1"]//h4[@class="code-header"]' 'fn quux(self)'

0 commit comments

Comments
 (0)