mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-17 02:54:26 +00:00
16 lines
461 B
Plaintext
16 lines
461 B
Plaintext
error: An implementation of From is preferred since it gives you Into<..> for free where the reverse isn't true.
|
|
--> $DIR/from_over_into.rs:6:1
|
|
|
|
|
LL | / impl Into<StringWrapper> for String {
|
|
LL | | fn into(self) -> StringWrapper {
|
|
LL | | StringWrapper(self)
|
|
LL | | }
|
|
LL | | }
|
|
| |_^
|
|
|
|
|
= note: `-D clippy::from-over-into` implied by `-D warnings`
|
|
= help: consider to implement From instead
|
|
|
|
error: aborting due to previous error
|
|
|