mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Add regression test for doc of reexport of local items
This commit is contained in:
parent
1123852d08
commit
c983bb162c
16
src/test/rustdoc/local-reexport-doc.rs
Normal file
16
src/test/rustdoc/local-reexport-doc.rs
Normal file
@ -0,0 +1,16 @@
|
||||
// This test ensures that the reexports of local items also get the doc from
|
||||
// the reexport.
|
||||
|
||||
#![crate_name = "foo"]
|
||||
|
||||
// @has 'foo/fn.g.html'
|
||||
// @has - '//*[@class="rustdoc-toggle top-doc"]/*[@class="docblock"]' \
|
||||
// 'outer module inner module'
|
||||
|
||||
mod inner_mod {
|
||||
/// inner module
|
||||
pub fn g() {}
|
||||
}
|
||||
|
||||
/// outer module
|
||||
pub use inner_mod::g;
|
Loading…
Reference in New Issue
Block a user