mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
20 lines
373 B
Rust
20 lines
373 B
Rust
|
//@compile-flags: --test
|
||
|
|
||
|
#![warn(clippy::wildcard_imports)]
|
||
|
#![allow(unused, clippy::unnecessary_wraps, clippy::let_unit_value)]
|
||
|
|
||
|
// Test for #10580, the lint should ignore it because of the crate's cfg test flag.
|
||
|
|
||
|
fn foofoo() {}
|
||
|
|
||
|
mod outer {
|
||
|
mod inner {
|
||
|
use super::super::*;
|
||
|
fn barbar() {
|
||
|
let _ = foofoo();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {}
|