mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
31 lines
380 B
Rust
31 lines
380 B
Rust
// run-rustfix
|
|
|
|
#![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;
|
|
}
|