2023-04-23 06:03:09 -05:00
|
|
|
//@run-rustfix
|
2020-01-14 06:52:08 -06:00
|
|
|
|
|
|
|
#![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;
|
|
|
|
}
|