]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc/intra-doc/pub-use.rs
New upstream version 1.59.0+dfsg1
[rustc.git] / src / test / rustdoc / intra-doc / pub-use.rs
CommitLineData
1b1a35ee 1// aux-build: intra-link-pub-use.rs
a2a8927a 2#![deny(rustdoc::broken_intra_doc_links)]
1b1a35ee
XL
3#![crate_name = "outer"]
4
5extern 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
17df50a5 15// @ has - '//a[@href="{{channel}}/std/env/fn.var.html"]' "std::env"
cdc7bbd5 16// @ has - '//a[@href="fn.f.html"]' "g"
1b1a35ee
XL
17pub use f as g;
18
19// FIXME: same as above
20/// [std::env]
21extern 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
17df50a5 26// @has - '//a[@href="{{channel}}/std/env/index.html"]' "std::env"
1b1a35ee 27pub use inner::f;