]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/impl-box.rs
a371db135cff3c3bf3a682161a6678c35204a931
[rust.git] / src / test / rustdoc / impl-box.rs
1 // https://github.com/rust-lang/rust/issues/92940
2 //
3 // Show traits implemented on fundamental types that wrap local ones.
4
5 pub struct MyType;
6
7 // @has 'impl_box/struct.MyType.html'
8 // @has '-' '//*[@id="impl-Iterator"]' 'impl Iterator for Box<MyType>'
9
10 impl Iterator for Box<MyType> {
11     type Item = ();
12
13     fn next(&mut self) -> Option<Self::Item> {
14         todo!()
15     }
16 }