about summary refs log tree commit diff
path: root/src/test/rustdoc/inline_local
diff options
context:
space:
mode:
authormitaa <mitaa.ceb@gmail.com>2016-03-10 03:29:46 +0100
committermitaa <mitaa.ceb@gmail.com>2016-03-10 03:29:46 +0100
commita20e6bb1627f8669b334e673740f78e435cd0321 (patch)
treef3825fc32fd7bd26183e1ded8a50868668bf4e86 /src/test/rustdoc/inline_local
parentae7fca1e1f5d74bf88ffacaf339b28d8c73f8c4f (diff)
downloadrust-a20e6bb1627f8669b334e673740f78e435cd0321.tar.gz
rust-a20e6bb1627f8669b334e673740f78e435cd0321.zip
Consider `doc(hidden)` for crate-local inlining
Diffstat (limited to 'src/test/rustdoc/inline_local')
-rw-r--r--src/test/rustdoc/inline_local/issue-28537.rs27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/rustdoc/inline_local/issue-28537.rs b/src/test/rustdoc/inline_local/issue-28537.rs
new file mode 100644
index 00000000000..b38e104b7b4
--- /dev/null
+++ b/src/test/rustdoc/inline_local/issue-28537.rs
@@ -0,0 +1,27 @@
+// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+#[doc(hidden)]
+pub mod foo {
+    pub struct Foo;
+}
+
+mod bar {
+    pub use self::bar::Bar;
+    mod bar {
+        pub struct Bar;
+    }
+}
+
+// @has issue_28537/struct.Foo.html
+pub use foo::Foo;
+
+// @has issue_28537/struct.Bar.html
+pub use self::bar::Bar;