<!-- Hi there! Whether you've come to make a suggestion for a new lint, an improvement to an existing lint or to report a bug or a false positive in Clippy, you've come to the right place. For bug reports and false positives, please include the output of `cargo clippy -V` in the report. Thank you for using Clippy! Write your comment below this line: --> `unreachable_pub` can apply to `use`. ```rust #![warn(unreachable_pub)] #![warn(clippy::useless_attribute)] mod a { mod b { #[allow(unreachable_pub)] pub struct C {} } #[allow(unreachable_pub)] pub use b::C; } ``` [Playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=12bdb8024c99ae984f76ef00372b4404)