mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
24 lines
667 B
Plaintext
24 lines
667 B
Plaintext
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 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0283`.
|