2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2025-03-09 01:37:16 +00:00
rust-clippy/tests/ui/pub_use.rs

15 lines
252 B
Rust

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