mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 17:44:28 +00:00
16 lines
237 B
Rust
16 lines
237 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;
|
|
//~^ pub_use
|
|
}
|
|
|
|
// should not be linted
|
|
use std::fmt;
|