]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-29503.rs
Auto merge of #83592 - nagisa:nagisa/dso_local, r=davidtwco
[rust.git] / src / test / rustdoc / issue-29503.rs
1 use std::fmt;
2
3 // @has issue_29503/trait.MyTrait.html
4 pub trait MyTrait {
5     fn my_string(&self) -> String;
6 }
7
8 // @has - "//div[@id='implementors-list']/h3[@id='impl-MyTrait']//code" "impl<T> MyTrait for T where T: Debug"
9 impl<T> MyTrait for T where T: fmt::Debug {
10     fn my_string(&self) -> String {
11         format!("{:?}", self)
12     }
13 }
14
15 pub fn main() {
16 }