mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
18 lines
236 B
Rust
18 lines
236 B
Rust
//@ check-pass
|
|
|
|
// Tests that the `unreachable_pub` lint doesn't fire for `pub self::imp::f`.
|
|
|
|
#![deny(unreachable_pub)]
|
|
|
|
mod m {
|
|
mod imp {
|
|
pub fn f() {}
|
|
}
|
|
|
|
pub use self::imp::f;
|
|
}
|
|
|
|
pub use self::m::f;
|
|
|
|
fn main() {}
|