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"]' 1
9 // @count - '//*[@class="sidebar"]//a[@href="#impl-AnAmazingTrait-1"]' 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<()> {}