]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/public-reexported-item-doc-test.rs
resolve: Fix resolution of empty paths passed from rustdoc
[rust.git] / src / test / rustdoc-ui / public-reexported-item-doc-test.rs
1 // check-pass
2
3 #![deny(rustdoc::private_doc_tests)]
4
5 pub fn foo() {}
6
7 mod private {
8     /// re-exported doc test
9     ///
10     /// ```
11     /// assert!(true);
12     /// ```
13     pub fn bar() {}
14 }
15
16 pub use private::bar;