mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
1d328de3ec
This swaps things around so that the class that gets used more often has the shorter name.
17 lines
336 B
Rust
17 lines
336 B
Rust
// 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="toggle top-doc"]/*[@class="docblock"]' \
|
|
// 'outer module inner module'
|
|
|
|
mod inner_mod {
|
|
/// inner module
|
|
pub fn g() {}
|
|
}
|
|
|
|
/// outer module
|
|
pub use inner_mod::g;
|