about summary refs log tree commit diff
path: root/tests/ui/lint/issue-57410.rs
blob: ed0fbc87bfbdb31d011321e9c1242a4e2c2358fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ check-pass

// Tests that the `unreachable_pub` lint doesn't fire for `pub self::imp::f`.

#![deny(unreachable_pub)]

mod m {
    mod imp {
        pub fn f() {}
    }

    pub use self::imp::f;
}

pub use self::m::f;

fn main() {}