summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-gui/src
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:19 +0000
commita0b8f38ab54ac451646aa00cd5e91b6c76f22a84 (patch)
treefc451898ccaf445814e26b46664d78702178101d /tests/rustdoc-gui/src
parentAdding debian version 1.71.1+dfsg1-2. (diff)
downloadrustc-a0b8f38ab54ac451646aa00cd5e91b6c76f22a84.tar.xz
rustc-a0b8f38ab54ac451646aa00cd5e91b6c76f22a84.zip
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/rustdoc-gui/src')
-rw-r--r--tests/rustdoc-gui/src/test_docs/lib.rs30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/src/test_docs/lib.rs b/tests/rustdoc-gui/src/test_docs/lib.rs
index 6ad1e8b4f..ecf3a7cc1 100644
--- a/tests/rustdoc-gui/src/test_docs/lib.rs
+++ b/tests/rustdoc-gui/src/test_docs/lib.rs
@@ -486,3 +486,33 @@ pub mod search_results {
}
}
+
+pub mod fields {
+ pub struct Struct {
+ pub a: u8,
+ pub b: u32,
+ }
+ pub union Union {
+ pub a: u8,
+ pub b: u32,
+ }
+ pub enum Enum {
+ A {
+ a: u8,
+ b: u32,
+ },
+ B {
+ a: u8,
+ b: u32,
+ },
+ }
+}
+
+pub mod cfgs {
+ #[doc(cfg(all(
+ any(not(feature = "appservice-api-c"), not(feature = "appservice-api-s")),
+ any(not(feature = "client"), not(feature = "server")),
+ )))]
+ /// Some docs.
+ pub mod cfgs {}
+}