| 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[E0283]: type annotations needed | |
| --> $DIR/multiple-impl-apply.rs:67:29 | |
| | | |
| LL | let _ = n == 42usize as _; | |
| | ^ cannot infer type | |
| | | |
| note: multiple `impl`s satisfying `u32: PartialEq<_>` found | |
| --> $DIR/multiple-impl-apply.rs:52:1 | |
| | | |
| LL | impl PartialEq<Value> for u32 { | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| = note: and another `impl` found in the `core` crate: `impl PartialEq for u32;` | |
| error[E0283]: type annotations needed | |
| --> $DIR/multiple-impl-apply.rs:72:24 | |
| | | |
| LL | let _ = 42usize as _ == n; | |
| | ^ cannot infer type | |
| | | |
| note: multiple `impl`s satisfying `_: PartialEq<u32>` found | |
| --> $DIR/multiple-impl-apply.rs:58:1 | |
| | | |
| LL | impl PartialEq<u32> for Value { | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| = note: and another `impl` found in the `core` crate: `impl PartialEq for u32;` | |
| error[E0282]: type annotations needed | |
| --> $DIR/multiple-impl-apply.rs:79:17 | |
| | | |
| LL | let _ = 42usize as _; | |
| | ^ - type must be known at this point | |
| | | |
| help: consider giving this pattern a type | |
| | | |
| LL | let _: /* Type */ = 42usize as _; | |
| | ++++++++++++ | |
| error[E0283]: type annotations needed | |
| --> $DIR/multiple-impl-apply.rs:100:28 | |
| | | |
| LL | let _: () = 42usize as _ + AddRhs; | |
| | ^ cannot infer type | |
| | | |
| note: multiple `impl`s satisfying `_: Add<AddRhs>` found | |
| --> $DIR/multiple-impl-apply.rs:87:1 | |
| | | |
| LL | impl std::ops::Add<AddRhs> for u32 { | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| ... | |
| LL | impl std::ops::Add<AddRhs> for i32 { | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| error: aborting due to 5 previous errors | |
| Some errors have detailed explanations: E0282, E0283. | |
| For more information about an error, try `rustc --explain E0282`. |