]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/local-reexport-doc.rs
Fix problem noticed in PR106859 with char -> u8 suggestion
[rust.git] / tests / rustdoc / local-reexport-doc.rs
1 // This test ensures that the reexports of local items also get the doc from
2 // the reexport.
3
4 #![crate_name = "foo"]
5
6 // @has 'foo/fn.g.html'
7 // @has - '//*[@class="toggle top-doc"]/*[@class="docblock"]' \
8 // 'outer module inner module'
9
10 mod inner_mod {
11     /// inner module
12     pub fn g() {}
13 }
14
15 /// outer module
16 pub use inner_mod::g;