rust/tests/rustdoc/impl-type-parameter-33592.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
342 B
Rust
Raw Normal View History

2023-10-16 18:12:17 -05:00
// 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 {}