forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#96565 - notriddle:notriddle/impl-box, r=cam…
…elid rustdoc: show implementations on `#[fundamental]` wrappers Fixes rust-lang#92940
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// https://github.com/rust-lang/rust/issues/92940 | ||
// | ||
// Show traits implemented on fundamental types that wrap local ones. | ||
|
||
pub struct MyType; | ||
|
||
// @has 'impl_box/struct.MyType.html' | ||
// @has '-' '//*[@id="impl-Iterator"]' 'impl Iterator for Box<MyType>' | ||
|
||
impl Iterator for Box<MyType> { | ||
type Item = (); | ||
|
||
fn next(&mut self) -> Option<Self::Item> { | ||
todo!() | ||
} | ||
} |