From a20e6bb1627f8669b334e673740f78e435cd0321 Mon Sep 17 00:00:00 2001 From: mitaa Date: Thu, 10 Mar 2016 03:29:46 +0100 Subject: Consider `doc(hidden)` for crate-local inlining --- src/test/rustdoc/inline_local/issue-28537.rs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/test/rustdoc/inline_local/issue-28537.rs (limited to 'src/test/rustdoc/inline_local') 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 or the MIT license +// , 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; -- cgit 1.4.1-3-g733a5