]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/inline_local/issue-32343.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / rustdoc / inline_local / issue-32343.rs
1 // Copyright 2016 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 // @!has issue_32343/struct.Foo.html
12 // @has issue_32343/index.html
13 // @has - '//code' 'pub use foo::Foo'
14 // @!has - '//code/a' 'Foo'
15 #[doc(no_inline)]
16 pub use foo::Foo;
17
18 // @!has issue_32343/struct.Bar.html
19 // @has issue_32343/index.html
20 // @has - '//code' 'pub use foo::Bar'
21 // @has - '//code/a' 'Bar'
22 #[doc(no_inline)]
23 pub use foo::Bar;
24
25 mod foo {
26 pub struct Foo;
27 pub struct Bar;
28 }
29
30 pub mod bar {
31 // @has issue_32343/bar/struct.Bar.html
32 pub use ::foo::Bar;
33 }