2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2019-01-26 13:30:52 -06:00
|
|
|
|
|
|
|
// 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() {}
|