mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
19 lines
269 B
Rust
19 lines
269 B
Rust
//@ 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() {}
|