]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/redirect.rs
Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, r=GuillaumeGomez
[rust.git] / tests / rustdoc / redirect.rs
1 // aux-build:reexp-stripped.rs
2 // build-aux-docs
3 // ignore-cross-compile
4
5 extern crate reexp_stripped;
6
7 pub trait Foo {}
8
9 // @has redirect/index.html
10 // @has - '//code' 'pub use reexp_stripped::Bar'
11 // @has - '//code/a' 'Bar'
12 // @has reexp_stripped/hidden/struct.Bar.html
13 // @has - '//p/a' '../../reexp_stripped/struct.Bar.html'
14 // @has 'reexp_stripped/struct.Bar.html'
15 #[doc(no_inline)]
16 pub use reexp_stripped::Bar;
17 impl Foo for Bar {}
18
19 // @has redirect/index.html
20 // @has - '//code' 'pub use reexp_stripped::Quz'
21 // @has - '//code/a' 'Quz'
22 // @has reexp_stripped/private/struct.Quz.html
23 // @has - '//p/a' '../../reexp_stripped/struct.Quz.html'
24 // @has 'reexp_stripped/struct.Quz.html'
25 #[doc(no_inline)]
26 pub use reexp_stripped::Quz;
27 impl Foo for Quz {}
28
29 mod private_no_inline {
30     pub struct Qux;
31     impl ::Foo for Qux {}
32 }
33
34 // @has redirect/index.html
35 // @has - '//code' 'pub use private_no_inline::Qux'
36 // @!has - '//a' 'Qux'
37 // @!has redirect/struct.Qux.html
38 #[doc(no_inline)]
39 pub use private_no_inline::Qux;