]> git.lizzy.rs Git - rust.git/blob - tests/ui/from_over_into.stderr
Added from_over_into lint
[rust.git] / tests / ui / from_over_into.stderr
1 error: An implementation of From is preferred since it gives you Into<..> for free where the reverse isn't true.
2   --> $DIR/from_over_into.rs:6:1
3    |
4 LL | / impl Into<StringWrapper> for String {
5 LL | |     fn into(self) -> StringWrapper {
6 LL | |         StringWrapper(self)
7 LL | |     }
8 LL | | }
9    | |_^
10    |
11    = note: `-D clippy::from-over-into` implied by `-D warnings`
12    = help: consider implement From instead
13
14 error: aborting due to previous error
15