]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-57410-1.rs
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-57410-1.rs
1 // build-pass (FIXME(62277): could be 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() {}