summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/issue-33592.rs
blob: 815439db9bfd23c8e4fcaf54dee57f236b4f55b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![crate_name = "foo"]

pub trait Foo<T> {}

pub struct Bar;

pub struct Baz;

// @has foo/trait.Foo.html '//h3[@class="code-header in-band"]' 'impl Foo<i32> for Bar'
impl Foo<i32> for Bar {}

// @has foo/trait.Foo.html '//h3[@class="code-header in-band"]' 'impl<T> Foo<T> for Baz'
impl<T> Foo<T> for Baz {}