]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-29503.rs
Rollup merge of #107662 - cjgillot:copy-projection, r=oli-obk
[rust.git] / tests / 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']//*[@id='impl-MyTrait-for-T']//h3[@class='code-header']" "impl<T> MyTrait for Twhere T: Debug"
9 impl<T> MyTrait for T
10 where
11     T: fmt::Debug,
12 {
13     fn my_string(&self) -> String {
14         format!("{:?}", self)
15     }
16 }
17
18 pub fn main() {}