]>
git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/issue-78701.rs
3 // This test ensures that if a blanket impl has the same ID as another impl, it'll
4 // link to the blanket impl and not the other impl. Basically, we're checking if
5 // the ID is correctly derived.
7 // @has 'foo/struct.AnotherStruct.html'
8 // @count - '//*[@class="sidebar"]//a[@href="#impl-AnAmazingTrait-for-AnotherStruct%3C()%3E"]' 1
9 // @count - '//*[@class="sidebar"]//a[@href="#impl-AnAmazingTrait-for-AnotherStruct%3CT%3E"]' 1
11 pub trait Something {}
13 pub trait AnAmazingTrait {}
15 impl<T
: Something
> AnAmazingTrait
for T {}
17 pub struct AnotherStruct
<T
>(T
);
19 impl<T
: Something
> Something
for AnotherStruct
<T
> {}
20 impl AnAmazingTrait
for AnotherStruct
<()> {}