diff options
| author | Michael Howell <michael@notriddle.com> | 2022-04-29 14:01:57 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-04-29 14:21:40 -0700 |
| commit | 62b9e0643b54f2ebe9d01e9537de7d4ad741ca83 (patch) | |
| tree | 6c41e712b4afb14a4a33e2d8fc8db7658a8640ca /src/test | |
| parent | 1c8966e5e9dc099b55206f34af81242d03bdb413 (diff) | |
| download | rust-62b9e0643b54f2ebe9d01e9537de7d4ad741ca83.tar.gz rust-62b9e0643b54f2ebe9d01e9537de7d4ad741ca83.zip | |
rustdoc: show implementations on `#[fundamental]` wrappers
Fixes #92940
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rustdoc/impl-box.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/rustdoc/impl-box.rs b/src/test/rustdoc/impl-box.rs new file mode 100644 index 00000000000..a371db135cf --- /dev/null +++ b/src/test/rustdoc/impl-box.rs @@ -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!() + } +} |
