Part of #87059 Partially reverts #84703 Preview at: https://notriddle.com/notriddle-rustdoc-test/real-headers/std/index.html
16 lines
523 B
Rust
16 lines
523 B
Rust
#![crate_name = "foo"]
|
|
|
|
use std::fmt;
|
|
|
|
// @!has foo/struct.Bar.html '//div[@id="impl-ToString"]//h3[@class="code-header in-band"]' 'impl<T> ToString for T'
|
|
pub struct Bar;
|
|
|
|
// @has foo/struct.Foo.html '//div[@id="impl-ToString"]//h3[@class="code-header in-band"]' 'impl<T> ToString for T'
|
|
pub struct Foo;
|
|
// @has foo/struct.Foo.html '//div[@class="sidebar-links"]/a[@href="#impl-ToString"]' 'ToString'
|
|
|
|
impl fmt::Display for Foo {
|
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
|
write!(f, "Foo")
|
|
}
|
|
}
|