]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/issue-57410.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[rust.git] / src / test / ui / lint / issue-57410.rs
1 // check-pass
2
3 // Tests that the `unreachable_pub` lint doesn't fire for `pub self::imp::f`.
4
5 #![deny(unreachable_pub)]
6
7 mod m {
8     mod imp {
9         pub fn f() {}
10     }
11
12     pub use self::imp::f;
13 }
14
15 pub use self::m::f;
16
17 fn main() {}