rust-clippy/tests/ui/from_over_into.stderr

12 lines
415 B
Text
Raw Normal View History

2020-12-21 16:15:05 +00:00
error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
2020-12-19 14:49:42 +00:00
--> $DIR/from_over_into.rs:6:1
|
LL | impl Into<StringWrapper> for String {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-12-19 14:49:42 +00:00
|
= note: `-D clippy::from-over-into` implied by `-D warnings`
2021-04-16 17:38:01 +00:00
= help: consider to implement `From<std::string::String>` instead
2020-12-19 14:49:42 +00:00
error: aborting due to previous error
2021-04-16 18:13:25 +00:00