mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
17 lines
395 B
Plaintext
17 lines
395 B
Plaintext
error: don't use glob imports for enum variants
|
|
--> $DIR/enum_glob_use.rs:4:1
|
|
|
|
|
LL | use std::cmp::Ordering::*;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::enum-glob-use` implied by `-D warnings`
|
|
|
|
error: don't use glob imports for enum variants
|
|
--> $DIR/enum_glob_use.rs:10:1
|
|
|
|
|
LL | use self::Enum::*;
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|