rust-clippy/tests/ui/pub_use.rs

15 lines
220 B
Rust
Raw Normal View History

#![warn(clippy::pub_use)]
#![allow(unused_imports)]
#![no_main]
pub mod outer {
mod inner {
pub struct Test {}
}
// should be linted
pub use inner::Test;
}
// should not be linted
use std::fmt;