35 lines
964 B
Text
35 lines
964 B
Text
error[E0282]: type annotations needed
|
|
--> $DIR/multiple-impl-apply.rs:34:9
|
|
|
|
|
LL | let y = x.into();
|
|
| ^
|
|
|
|
|
help: consider giving `y` an explicit type
|
|
|
|
|
LL | let y: /* Type */ = x.into();
|
|
| ++++++++++++
|
|
|
|
error[E0283]: type annotations needed
|
|
--> $DIR/multiple-impl-apply.rs:34:9
|
|
|
|
|
LL | let y = x.into();
|
|
| ^ ---- type must be known at this point
|
|
|
|
|
note: multiple `impl`s satisfying `_: From<Baz>` found
|
|
--> $DIR/multiple-impl-apply.rs:14:1
|
|
|
|
|
LL | impl From<Baz> for Bar {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
...
|
|
LL | impl From<Baz> for Foo {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
= note: required for `Baz` to implement `Into<_>`
|
|
help: consider giving `y` an explicit type
|
|
|
|
|
LL | let y: /* Type */ = x.into();
|
|
| ++++++++++++
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
Some errors have detailed explanations: E0282, E0283.
|
|
For more information about an error, try `rustc --explain E0282`.
|