Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
lint
/
issue-57410-1.rs
blob: 6c0b54d74ec5e2b64b65b5ff890ec3c1a6e45ed2 [
file
] [
log
] [
blame
]
//@ 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
()
{}