Part of #87059 Partially reverts #84703 Preview at: https://notriddle.com/notriddle-rustdoc-test/real-headers/std/index.html
13 lines
308 B
Rust
13 lines
308 B
Rust
#![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 {}
|