1 // issue #56018: "Implementations on Foreign Types" sidebar items should link to specific impls
5 // @has foo/trait.Foo.html
6 // @has - '//*[@class="sidebar-title"]/a[@href="#foreign-impls"]' 'Implementations on Foreign Types'
7 // @has - '//h2[@id="foreign-impls"]' 'Implementations on Foreign Types'
8 // @has - '//*[@class="sidebar-elems"]//section//a[@href="#impl-Foo-for-u32"]' 'u32'
9 // @has - '//*[@id="impl-Foo-for-u32"]//h3[@class="code-header"]' 'impl Foo for u32'
10 // @has - '//*[@class="sidebar-elems"]//section//a[@href="#impl-Foo-for-%26%27a%20str"]' "&'a str"
11 // @has - '//*[@id="impl-Foo-for-%26%27a%20str"]//h3[@class="code-header"]' "impl<'a> Foo for &'a str"
16 impl<'a> Foo for &'a str {}