]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/intra-doc/cross-crate/submodule-outer.rs
New upstream version 1.59.0+dfsg1
[rustc.git] / src / test / rustdoc / intra-doc / cross-crate / submodule-outer.rs
1 // aux-build:submodule-outer.rs
2 // edition:2018
3 #![deny(rustdoc::broken_intra_doc_links)]
4
5 extern crate bar as bar_;
6
7 // from https://github.com/rust-lang/rust/issues/60883
8 pub mod bar {
9 pub use ::bar_::Bar;
10 }
11
12 // NOTE: we re-exported both `Foo` and `Bar` here,
13 // NOTE: so they are inlined and therefore we link to the current module.
14 // @has 'submodule_outer/trait.Foo.html' '//a[@href="bar/trait.Bar.html"]' 'Bar'
15 // @has 'submodule_outer/trait.Foo.html' '//a[@href="trait.Baz.html"]' 'Baz'
16 pub use ::bar_::{Foo, Baz};