rust-clippy/tests/ui/from_over_into.stderr

16 lines
461 B
Text
Raw Normal View History

2020-12-19 14:49:42 +00:00
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`
2020-12-20 12:00:17 +00:00
= help: consider to implement From instead
2020-12-19 14:49:42 +00:00
error: aborting due to previous error