2020-01-14 12:52:08 +00:00
|
|
|
#![warn(clippy::enum_glob_use)]
|
|
|
|
#![allow(unused)]
|
|
|
|
#![warn(unused_imports)]
|
2016-02-03 14:38:23 +00:00
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
use std::cmp::Ordering::*;
|
2016-02-03 14:38:23 +00:00
|
|
|
|
2017-02-05 05:59:39 +00:00
|
|
|
enum Enum {
|
2020-01-14 12:52:08 +00:00
|
|
|
Foo,
|
2017-02-05 05:59:39 +00:00
|
|
|
}
|
2016-02-03 14:38:23 +00:00
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
use self::Enum::*;
|
2016-02-03 14:38:23 +00:00
|
|
|
|
2020-01-14 12:52:08 +00:00
|
|
|
mod in_fn_test {
|
|
|
|
fn blarg() {
|
|
|
|
use crate::Enum::*;
|
|
|
|
|
|
|
|
let _ = Foo;
|
|
|
|
}
|
2016-02-03 14:38:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
mod blurg {
|
2023-10-15 11:38:22 +00:00
|
|
|
#[allow(unused_imports)]
|
2016-02-03 14:38:23 +00:00
|
|
|
pub use std::cmp::Ordering::*; // ok, re-export
|
|
|
|
}
|
|
|
|
|
2020-01-14 12:52:08 +00:00
|
|
|
fn main() {
|
|
|
|
let _ = Foo;
|
|
|
|
let _ = Less;
|
2016-02-18 15:08:45 +00:00
|
|
|
}
|