File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
src/tools/clippy/tests/ui Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ mod in_fn_test {
1919}
2020
2121mod blurg {
22- pub use std::cmp::Ordering::*; // ok, re-export
22+ // ok, re-export
2323}
2424
2525fn main() {
Original file line number Diff line number Diff line change 1+ error: unused import: `std::cmp::Ordering::*`
2+ --> $DIR/enum_glob_use.rs:22:13
3+ |
4+ LL | pub use std::cmp::Ordering::*; // ok, re-export
5+ | ^^^^^^^^^^^^^^^^^^^^^
6+ |
7+ = note: `-D unused-imports` implied by `-D warnings`
8+ = help: to override `-D warnings` add `#[allow(unused_imports)]`
9+
110error: usage of wildcard import for enum variants
211 --> $DIR/enum_glob_use.rs:5:5
312 |
@@ -19,5 +28,5 @@ error: usage of wildcard import for enum variants
1928LL | use crate::Enum::*;
2029 | ^^^^^^^^^^^^^^ help: try: `crate::Enum::Foo`
2130
22- error: aborting due to 3 previous errors
31+ error: aborting due to 4 previous errors
2332
You can’t perform that action at this time.
0 commit comments