about summary refs log tree commit diff
path: root/tests/rustdoc/private/private-non-local-fields-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/private/private-non-local-fields-2.rs')
-rw-r--r--tests/rustdoc/private/private-non-local-fields-2.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/rustdoc/private/private-non-local-fields-2.rs b/tests/rustdoc/private/private-non-local-fields-2.rs
new file mode 100644
index 00000000000..f2d3530c088
--- /dev/null
+++ b/tests/rustdoc/private/private-non-local-fields-2.rs
@@ -0,0 +1,11 @@
+//! This test makes sure that with never show the inner fields in the
+//! aliased type view of type alias.
+
+//@ compile-flags: -Z unstable-options --document-private-items
+
+#![crate_name = "foo"]
+
+use std::collections::BTreeMap;
+
+//@ has 'foo/type.FooBar.html' '//*[@class="rust item-decl"]/code' 'struct FooBar { /* private fields */ }'
+pub type FooBar = BTreeMap<u32, String>;