mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
27 lines
740 B
Plaintext
27 lines
740 B
Plaintext
warning: the item `TryFrom` is imported redundantly
|
|
--> $DIR/use-redundant-prelude-rust-2021.rs:5:5
|
|
|
|
|
LL | use std::convert::TryFrom;
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
|
|
|
|
|
= note: the item `TryFrom` is already defined here
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/use-redundant-prelude-rust-2021.rs:3:9
|
|
|
|
|
LL | #![warn(redundant_imports)]
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
warning: the item `TryInto` is imported redundantly
|
|
--> $DIR/use-redundant-prelude-rust-2021.rs:6:5
|
|
|
|
|
LL | use std::convert::TryInto;
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
--> $SRC_DIR/std/src/prelude/mod.rs:LL:COL
|
|
|
|
|
= note: the item `TryInto` is already defined here
|
|
|
|
warning: 2 warnings emitted
|
|
|