mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-28 15:41:10 +00:00
15 lines
220 B
Rust
15 lines
220 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;
|
||
|
}
|
||
|
|
||
|
// should not be linted
|
||
|
use std::fmt;
|