mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 08:30:45 +00:00
29 lines
386 B
Rust
29 lines
386 B
Rust
#![warn(clippy::enum_glob_use)]
|
|
#![allow(unused)]
|
|
#![warn(unused_imports)]
|
|
|
|
use std::cmp::Ordering::*;
|
|
|
|
enum Enum {
|
|
Foo,
|
|
}
|
|
|
|
use self::Enum::*;
|
|
|
|
mod in_fn_test {
|
|
fn blarg() {
|
|
use crate::Enum::*;
|
|
|
|
let _ = Foo;
|
|
}
|
|
}
|
|
|
|
mod blurg {
|
|
#[allow(unused_imports)]
|
|
pub use std::cmp::Ordering::*; // ok, re-export
|
|
}
|
|
|
|
fn main() {
|
|
let _ = Foo;
|
|
let _ = Less;
|
|
}
|