rust/tests/ui/enum_glob_use.rs

31 lines
373 B
Rust
Raw Normal View History

// run-rustfix
#![warn(clippy::enum_glob_use)]
#![allow(unused)]
#![warn(unused_imports)]
2017-02-08 07:58:07 -06:00
use std::cmp::Ordering::*;
2017-02-04 23:59:39 -06:00
enum Enum {
Foo,
2017-02-04 23:59:39 -06:00
}
2017-02-08 07:58:07 -06:00
use self::Enum::*;
mod in_fn_test {
fn blarg() {
use crate::Enum::*;
let _ = Foo;
}
}
mod blurg {
pub use std::cmp::Ordering::*; // ok, re-export
}
fn main() {
let _ = Foo;
let _ = Less;
2016-02-18 09:08:45 -06:00
}