]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-45584.rs
86479e6fb2e51a67ef6f2143e67dc8930c3822cf
[rust.git] / tests / rustdoc / issue-45584.rs
1 #![crate_name = "foo"]
2
3 pub trait Bar<T, U> {}
4
5 // @has 'foo/struct.Foo1.html'
6 pub struct Foo1;
7 // @count - '//*[@id="trait-implementations-list"]//*[@class="impl has-srclink"]' 1
8 // @has - '//*[@class="impl has-srclink"]' "impl Bar<Foo1, &'static Foo1> for Foo1"
9 impl Bar<Foo1, &'static Foo1> for Foo1 {}
10
11 // @has 'foo/struct.Foo2.html'
12 pub struct Foo2;
13 // @count - '//*[@id="trait-implementations-list"]//*[@class="impl has-srclink"]' 1
14 // @has - '//*[@class="impl has-srclink"]' "impl Bar<&'static Foo2, Foo2> for u8"
15 impl Bar<&'static Foo2, Foo2> for u8 {}