]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/issue-57410.rs
Rollup merge of #106935 - TaKO8Ki:fix-104440, r=cjgillot
[rust.git] / tests / 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() {}