2020-08-30 12:06:40 -04:00
|
|
|
// aux-build: intra-link-pub-use.rs
|
2020-08-30 08:44:20 -04:00
|
|
|
#![deny(broken_intra_doc_links)]
|
2020-08-30 12:06:40 -04:00
|
|
|
#![crate_name = "outer"]
|
|
|
|
|
|
|
|
extern crate inner;
|
|
|
|
|
|
|
|
/// [mod@std::env] [g]
|
2020-08-29 16:32:17 -04:00
|
|
|
|
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.
|
|
|
|
|
2020-08-30 12:06:40 -04:00
|
|
|
// @has outer/index.html
|
2021-05-04 23:36:33 -04:00
|
|
|
// @ has - '//a[@href="{{channel}}/std/env/fn.var.html"]' "std::env"
|
2021-03-17 11:41:01 -07:00
|
|
|
// @ has - '//a[@href="fn.f.html"]' "g"
|
2020-08-29 16:32:17 -04:00
|
|
|
pub use f as g;
|
|
|
|
|
2020-08-30 12:06:40 -04:00
|
|
|
// FIXME: same as above
|
2020-08-30 08:44:20 -04:00
|
|
|
/// [std::env]
|
|
|
|
extern crate self as _;
|
|
|
|
|
2020-08-30 12:06:40 -04:00
|
|
|
// Make sure the documentation is actually correct by documenting an inlined re-export
|
|
|
|
/// [mod@std::env]
|
|
|
|
// @has outer/fn.f.html
|
2021-05-04 23:36:33 -04:00
|
|
|
// @has - '//a[@href="{{channel}}/std/env/index.html"]' "std::env"
|
2020-08-30 12:06:40 -04:00
|
|
|
pub use inner::f;
|