]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/issue-57410-1.rs
Rollup merge of #106446 - bzEq:fix-unwind-lsda, r=Amanieu
[rust.git] / tests / ui / lint / issue-57410-1.rs
1 // check-pass
2
3 // Originally from #53925.
4 // Tests that the `unreachable_pub` lint doesn't fire for `pub self::bar::Bar`.
5
6 #![deny(unreachable_pub)]
7
8 mod foo {
9     mod bar {
10         pub struct Bar;
11     }
12
13     pub use self::bar::Bar;
14 }
15
16 pub use foo::Bar;
17
18 fn main() {}