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)]
|
2016-02-03 08:38:23 -06:00
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
use std::cmp::Ordering::*;
|
2016-02-03 08:38:23 -06:00
|
|
|
|
2017-02-04 23:59:39 -06:00
|
|
|
enum Enum {
|
2020-01-14 06:52:08 -06:00
|
|
|
Foo,
|
2017-02-04 23:59:39 -06:00
|
|
|
}
|
2016-02-03 08:38:23 -06:00
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
use self::Enum::*;
|
2016-02-03 08:38:23 -06:00
|
|
|
|
2020-01-14 06:52:08 -06:00
|
|
|
mod in_fn_test {
|
|
|
|
fn blarg() {
|
|
|
|
use crate::Enum::*;
|
|
|
|
|
|
|
|
let _ = Foo;
|
|
|
|
}
|
2016-02-03 08:38:23 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
mod blurg {
|
|
|
|
pub use std::cmp::Ordering::*; // ok, re-export
|
|
|
|
}
|
|
|
|
|
2020-01-14 06:52:08 -06:00
|
|
|
fn main() {
|
|
|
|
let _ = Foo;
|
|
|
|
let _ = Less;
|
2016-02-18 09:08:45 -06:00
|
|
|
}
|