]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/impl-box.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / 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-for-Box%3CMyType%3E"]' '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 }