diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-05 17:01:08 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-05 17:47:18 +0200 |
| commit | b84f4cc39e99f801dcd37125dffa67eb796c85b8 (patch) | |
| tree | 071def2349dabae166fd66b06ee9346aa825abb9 /tests/rustdoc/cross-crate-hidden-impl-parameter.rs | |
| parent | be71d8b24f1aebe9c45279d95a76db8fa6a62574 (diff) | |
| download | rust-b84f4cc39e99f801dcd37125dffa67eb796c85b8.tar.gz rust-b84f4cc39e99f801dcd37125dffa67eb796c85b8.zip | |
Created `tests/rustdoc/impl` subfolder to limit number of files at the top level
Diffstat (limited to 'tests/rustdoc/cross-crate-hidden-impl-parameter.rs')
| -rw-r--r-- | tests/rustdoc/cross-crate-hidden-impl-parameter.rs | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/tests/rustdoc/cross-crate-hidden-impl-parameter.rs b/tests/rustdoc/cross-crate-hidden-impl-parameter.rs deleted file mode 100644 index ebfe251134a..00000000000 --- a/tests/rustdoc/cross-crate-hidden-impl-parameter.rs +++ /dev/null @@ -1,35 +0,0 @@ -// Issue #86448: test for cross-crate `doc(hidden)` -#![crate_name = "foo"] - -//@ aux-build:cross-crate-hidden-impl-parameter.rs -extern crate cross_crate_hidden_impl_parameter; - -pub use ::cross_crate_hidden_impl_parameter::{HiddenType, HiddenTrait}; // OK, not re-exported - -pub enum MyLibType {} - -//@ !has foo/enum.MyLibType.html '//*[@id="impl-From%3CHiddenType%3E"]' 'impl From<HiddenType> for MyLibType' -impl From<HiddenType> for MyLibType { - fn from(it: HiddenType) -> MyLibType { - match it {} - } -} - -pub struct T<T>(T); - -//@ !has foo/enum.MyLibType.html '//*[@id="impl-From%3CT%3CT%3CT%3CT%3CHiddenType%3E%3E%3E%3E%3E"]' 'impl From<T<T<T<T<HiddenType>>>>> for MyLibType' -impl From<T<T<T<T<HiddenType>>>>> for MyLibType { - fn from(it: T<T<T<T<HiddenType>>>>) -> MyLibType { - todo!() - } -} - -//@ !has foo/enum.MyLibType.html '//*[@id="impl-HiddenTrait"]' 'impl HiddenTrait for MyLibType' -impl HiddenTrait for MyLibType {} - -//@ !has foo/struct.T.html '//*[@id="impl-From%3CMyLibType%3E"]' 'impl From<MyLibType> for T<T<T<T<HiddenType>>>>' -impl From<MyLibType> for T<T<T<T<HiddenType>>>> { - fn from(it: MyLibType) -> T<T<T<T<HiddenType>>>> { - match it {} - } -} |
