rust-clippy/tests/ui/enum_glob_use.fixed
2023-08-11 14:02:28 +00:00

28 lines
364 B
Rust

#![warn(clippy::enum_glob_use)]
#![allow(unused)]
#![warn(unused_imports)]
use std::cmp::Ordering::Less;
enum Enum {
Foo,
}
use self::Enum::Foo;
mod in_fn_test {
fn blarg() {
use crate::Enum::Foo;
let _ = Foo;
}
}
mod blurg {
pub use std::cmp::Ordering::*; // ok, re-export
}
fn main() {
let _ = Foo;
let _ = Less;
}