mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 00:56:14 +00:00
16 lines
252 B
Rust
16 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;
|