]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/issue-57410.rs
New upstream version 1.57.0+dfsg1
[rustc.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() {}