1
1
warning: the item `Some` is imported redundantly
2
- --> $DIR/use-redundant-prelude-rust-2015.rs:5:5
2
+ --> $DIR/use-redundant-prelude-rust-2015.rs:5:1
3
3
|
4
4
LL | use std::option::Option::Some;
5
- | ^^^^^^^^^^^^^^^^^^^^^^^^^
5
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this import
6
6
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
7
7
|
8
8
= note: the item `Some` is already defined here
@@ -14,28 +14,28 @@ LL | #![warn(unused_imports)]
14
14
| ^^^^^^^^^^^^^^
15
15
16
16
warning: the item `None` is imported redundantly
17
- --> $DIR/use-redundant-prelude-rust-2015.rs:6:5
17
+ --> $DIR/use-redundant-prelude-rust-2015.rs:6:1
18
18
|
19
19
LL | use std::option::Option::None;
20
- | ^^^^^^^^^^^^^^^^^^^^^^^^^
20
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this import
21
21
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
22
22
|
23
23
= note: the item `None` is already defined here
24
24
25
25
warning: the item `Ok` is imported redundantly
26
- --> $DIR/use-redundant-prelude-rust-2015.rs:8:5
26
+ --> $DIR/use-redundant-prelude-rust-2015.rs:8:1
27
27
|
28
28
LL | use std::result::Result::Ok;
29
- | ^^^^^^^^^^^^^^^^^^^^^^^
29
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this import
30
30
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
31
31
|
32
32
= note: the item `Ok` is already defined here
33
33
34
34
warning: the item `Err` is imported redundantly
35
- --> $DIR/use-redundant-prelude-rust-2015.rs:9:5
35
+ --> $DIR/use-redundant-prelude-rust-2015.rs:9:1
36
36
|
37
37
LL | use std::result::Result::Err;
38
- | ^^^^^^^^^^^^^^^^^^^^^^^^
38
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this import
39
39
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
40
40
|
41
41
= note: the item `Err` is already defined here
0 commit comments