summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/issue-57410-1.rs
blob: d825cb1800864b48bd75f438449c4fe68adba2c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// check-pass

// Originally from #53925.
// Tests that the `unreachable_pub` lint doesn't fire for `pub self::bar::Bar`.

#![deny(unreachable_pub)]

mod foo {
    mod bar {
        pub struct Bar;
    }

    pub use self::bar::Bar;
}

pub use foo::Bar;

fn main() {}