about summary refs log tree commit diff
path: root/tests/rustdoc/impl/impl-type-parameter-33592.rs
blob: ac5df4609255bd5e7f18afcd1778e6e0d0d0c13c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// https://github.com/rust-lang/rust/issues/33592
#![crate_name = "foo"]

pub trait Foo<T> {}

pub struct Bar;

pub struct Baz;

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

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