]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/issue-29503.rs
New upstream version 1.65.0+dfsg1
[rustc.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']//*[@id='impl-MyTrait-for-T']//h3[@class='code-header in-band']" "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() {}