]> git.lizzy.rs Git - rust.git/blob - tests/ui/from_over_into.stderr
Auto merge of #6476 - 1c3t3a:1c3t3a-from-over-into, r=llogiq
[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 to implement `From` instead
13
14 error: aborting due to previous error
15