rust/tests/ui/lint/issue-57410.rs
2023-01-11 09:32:08 +00:00

18 lines
235 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() {}