]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/intra-doc/pub-use.rs
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / rustdoc / intra-doc / pub-use.rs
1 // aux-build: intra-link-pub-use.rs
2 #![deny(broken_intra_doc_links)]
3 #![crate_name = "outer"]
4
5 extern crate inner;
6
7 /// [mod@std::env] [g]
8
9 // FIXME: This can't be tested because rustdoc doesn't show documentation on pub re-exports.
10 // Until then, comment out the `htmldocck` test.
11 // This test still does something; namely check that no incorrect errors are emitted when
12 // documenting the re-export.
13
14 // @has outer/index.html
15 // @ has - '//a[@href="{{channel}}/std/env/fn.var.html"]' "std::env"
16 // @ has - '//a[@href="fn.f.html"]' "g"
17 pub use f as g;
18
19 // FIXME: same as above
20 /// [std::env]
21 extern crate self as _;
22
23 // Make sure the documentation is actually correct by documenting an inlined re-export
24 /// [mod@std::env]
25 // @has outer/fn.f.html
26 // @has - '//a[@href="{{channel}}/std/env/index.html"]' "std::env"
27 pub use inner::f;