Part of #87059 Partially reverts #84703 Preview at: https://notriddle.com/notriddle-rustdoc-test/real-headers/std/index.html
16 lines
390 B
Rust
16 lines
390 B
Rust
use std::fmt;
|
|
|
|
// @has issue_29503/trait.MyTrait.html
|
|
pub trait MyTrait {
|
|
fn my_string(&self) -> String;
|
|
}
|
|
|
|
// @has - "//div[@id='implementors-list']//div[@id='impl-MyTrait']//h3[@class='code-header in-band']" "impl<T> MyTrait for T where T: Debug"
|
|
impl<T> MyTrait for T where T: fmt::Debug {
|
|
fn my_string(&self) -> String {
|
|
format!("{:?}", self)
|
|
}
|
|
}
|
|
|
|
pub fn main() {
|
|
}
|