2020-08-30 08:44:20 -04:00
|
|
|
#![deny(broken_intra_doc_links)]
|
2020-08-29 16:32:17 -04:00
|
|
|
|
|
|
|
/// [std::env] [g]
|
2020-08-30 08:44:20 -04:00
|
|
|
// FIXME: This can't be tested because rustdoc doesn't show documentation on pub re-exports.
|
|
|
|
// Until then, comment out the `htmldocck` test.
|
|
|
|
// This test still does something; namely check that no incorrect errors are emitted when
|
|
|
|
// documenting the re-export.
|
|
|
|
|
|
|
|
// @has intra_link_pub_use/index.html
|
|
|
|
// @ has - '//a[@href="https://doc.rust-lang.org/nightly/std/env/fn.var.html"]' "std::env"
|
|
|
|
// @ has - '//a[@href="../intra_link_pub_use/fn.f.html"]' "g"
|
2020-08-29 16:32:17 -04:00
|
|
|
pub use f as g;
|
|
|
|
|
2020-08-30 08:44:20 -04:00
|
|
|
/// [std::env]
|
|
|
|
extern crate self as _;
|
|
|
|
|
2020-08-29 16:32:17 -04:00
|
|
|
pub fn f() {}
|