diff options
| author | binarycat <binarycat@envs.net> | 2025-07-11 13:45:51 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-07-22 17:11:48 -0500 |
| commit | 293f95fb0cd27970e147697aa9500acdc22fd0e6 (patch) | |
| tree | 677142a16b5303faff1524667e6b9efd9045acce /tests/rustdoc | |
| parent | 35487a2e7c80012129c38f55c970109a1538c91f (diff) | |
| download | rust-293f95fb0cd27970e147697aa9500acdc22fd0e6.tar.gz rust-293f95fb0cd27970e147697aa9500acdc22fd0e6.zip | |
add regression test for RUST-143222
Diffstat (limited to 'tests/rustdoc')
| -rw-r--r-- | tests/rustdoc/reexport/auxiliary/wrap-unnamable-type.rs | 12 | ||||
| -rw-r--r-- | tests/rustdoc/reexport/wrapped-unnamble-type-143222.rs | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/rustdoc/reexport/auxiliary/wrap-unnamable-type.rs b/tests/rustdoc/reexport/auxiliary/wrap-unnamable-type.rs new file mode 100644 index 00000000000..8ce0a0de544 --- /dev/null +++ b/tests/rustdoc/reexport/auxiliary/wrap-unnamable-type.rs @@ -0,0 +1,12 @@ +pub trait Assoc { + type Ty; +} + +pub struct Foo(<Foo as crate::Assoc>::Ty); + +const _: () = { + impl crate::Assoc for Foo { + type Ty = Bar; + } + pub struct Bar; +}; diff --git a/tests/rustdoc/reexport/wrapped-unnamble-type-143222.rs b/tests/rustdoc/reexport/wrapped-unnamble-type-143222.rs new file mode 100644 index 00000000000..005a5c0b98a --- /dev/null +++ b/tests/rustdoc/reexport/wrapped-unnamble-type-143222.rs @@ -0,0 +1,12 @@ +//@ compile-flags: -Z normalize-docs --document-private-items -Zunstable-options --show-type-layout +//@ aux-build:wrap-unnamable-type.rs +//@ build-aux-docs + +#![crate_name = "foo"] + +extern crate wrap_unnamable_type as helper; +//extern crate helper; +//@ has 'foo/struct.Foo.html' +//@ !hasraw - '_/struct.Bar.html' +#[doc(inline)] +pub use helper::Foo; |
