1 #![crate_name = "issue_78673"]
5 pub trait AnAmazingTrait {}
7 impl<T: Something> AnAmazingTrait for T {}
9 // @has 'issue_78673/struct.MyStruct.html'
10 // @has - '//*[@class="impl"]' 'AnAmazingTrait for MyStruct'
11 // @!has - '//*[@class="impl"]' 'AnAmazingTrait for T'
14 impl AnAmazingTrait for MyStruct {}
16 // generic structs may have _both_ specific and blanket impls that apply
18 // @has 'issue_78673/struct.AnotherStruct.html'
19 // @has - '//*[@class="impl"]' 'AnAmazingTrait for AnotherStruct<()>'
20 // @has - '//*[@class="impl"]' 'AnAmazingTrait for T'
21 pub struct AnotherStruct<T>(T);
23 impl<T: Something> Something for AnotherStruct<T> {}
24 impl AnAmazingTrait for AnotherStruct<()> {}