diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
commit | 64d98f8ee037282c35007b64c2649055c56af1db (patch) | |
tree | 5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /tests/rustdoc-gui/src/lib2/implementors | |
parent | Adding debian version 1.67.1+dfsg1-1. (diff) | |
download | rustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/rustdoc-gui/src/lib2/implementors')
-rw-r--r-- | tests/rustdoc-gui/src/lib2/implementors/Cargo.lock | 7 | ||||
-rw-r--r-- | tests/rustdoc-gui/src/lib2/implementors/Cargo.toml | 10 | ||||
-rw-r--r-- | tests/rustdoc-gui/src/lib2/implementors/lib.rs | 22 |
3 files changed, 39 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/src/lib2/implementors/Cargo.lock b/tests/rustdoc-gui/src/lib2/implementors/Cargo.lock new file mode 100644 index 000000000..cad99a991 --- /dev/null +++ b/tests/rustdoc-gui/src/lib2/implementors/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "implementors" +version = "0.1.0" diff --git a/tests/rustdoc-gui/src/lib2/implementors/Cargo.toml b/tests/rustdoc-gui/src/lib2/implementors/Cargo.toml new file mode 100644 index 000000000..9dafc43df --- /dev/null +++ b/tests/rustdoc-gui/src/lib2/implementors/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "implementors" +version = "0.1.0" +edition = "2018" + +[lib] +path = "lib.rs" + +[dependencies] +http = { path = "../http/" } diff --git a/tests/rustdoc-gui/src/lib2/implementors/lib.rs b/tests/rustdoc-gui/src/lib2/implementors/lib.rs new file mode 100644 index 000000000..2842ac50d --- /dev/null +++ b/tests/rustdoc-gui/src/lib2/implementors/lib.rs @@ -0,0 +1,22 @@ +pub trait Whatever { + type Foo; + + fn method() {} +} + +pub struct Struct; + +impl Whatever for Struct { + type Foo = u8; +} + +impl http::HttpTrait for Struct {} + +mod traits { + pub trait TraitToReexport { + fn method() {} + } +} + +#[doc(inline)] +pub use traits::TraitToReexport; |