rust/src/test/ui/issues/issue-57410-1.rs
2019-07-03 06:30:28 +09:00

19 lines
305 B
Rust

// build-pass (FIXME(62277): could be 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() {}