File tree 2 files changed +11
-2
lines changed
src/tools/clippy/tests/ui
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 {
19
19
}
20
20
21
21
mod blurg {
22
- pub use std::cmp::Ordering::*; // ok, re-export
22
+ // ok, re-export
23
23
}
24
24
25
25
fn 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
+
1
10
error: usage of wildcard import for enum variants
2
11
--> $DIR/enum_glob_use.rs:5:5
3
12
|
@@ -19,5 +28,5 @@ error: usage of wildcard import for enum variants
19
28
LL | use crate::Enum::*;
20
29
| ^^^^^^^^^^^^^^ help: try: `crate::Enum::Foo`
21
30
22
- error: aborting due to 3 previous errors
31
+ error: aborting due to 4 previous errors
23
32
You can’t perform that action at this time.
0 commit comments