]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/extern-links.rs
Auto merge of #33974 - habnabit:eintr-retry-for-read-iterators, r=alexcrichton
[rust.git] / src / test / rustdoc / extern-links.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 // aux-build:extern-links.rs
12 // ignore-cross-compile
13
14 #![crate_name = "foo"]
15
16 extern crate extern_links;
17
18 // @!has foo/index.html '//a' 'extern_links'
19 #[doc(no_inline)]
20 pub use extern_links as extern_links2;
21
22 // @!has foo/index.html '//a' 'Foo'
23 #[doc(no_inline)]
24 pub use extern_links::Foo;
25
26 #[doc(hidden)]
27 pub mod hidden {
28     // @!has foo/hidden/extern_links/index.html
29     // @!has foo/hidden/extern_links/struct.Foo.html
30     pub use extern_links;
31 }