d2061faf9e
* applying * binding * complex * constituent * demonstrate * desugaring * exact * expression * for * functionalities * github * implementation * infers * multiple conflicting traits * mutable * necessarily * nightly * nonexistent * optional * parameter * reassignments * resources * substitution * suggestion * that * that array is * using the Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
30 lines
1.3 KiB
Plaintext
30 lines
1.3 KiB
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_unfixable.rs:11:1
|
|
|
|
|
LL | impl Into<InMacro> for String {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: replace the `Into` implementation with `From<std::string::String>`
|
|
= note: `-D clippy::from-over-into` implied by `-D warnings`
|
|
|
|
error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
|
|
--> $DIR/from_over_into_unfixable.rs:19:1
|
|
|
|
|
LL | impl Into<WeirdUpperSelf> for &'static [u8] {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: replace the `Into` implementation with `From<&'static [u8]>`
|
|
|
|
error: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
|
|
--> $DIR/from_over_into_unfixable.rs:28:1
|
|
|
|
|
LL | impl Into<u8> for ContainsVal {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
|
|
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
|
|
= help: replace the `Into` implementation with `From<ContainsVal>`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|