|
| 1 | +error[E0119]: conflicting implementations of trait `TryFrom<Ty>` for type `u8` |
| 2 | + --> $DIR/conflicting-impls.rs:12:1 |
| 3 | + | |
| 4 | +LL | impl TryFrom<Ty> for u8 { |
| 5 | + | ----------------------- first implementation here |
| 6 | +... |
| 7 | +LL | impl TryFrom<Ty> for u8 { |
| 8 | + | ^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `u8` |
| 9 | + |
| 10 | +error[E0282]: type annotations needed |
| 11 | + --> $DIR/conflicting-impls.rs:7:5 |
| 12 | + | |
| 13 | +LL | fn try_from(_: Ty) -> Result<Self, Self::Error> { |
| 14 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type |
| 15 | + | |
| 16 | +note: the requirement `_ <: _` appears on the `impl`'s method `try_from` but not on the corresponding trait's method |
| 17 | + --> $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 18 | + | |
| 19 | + = note: in this trait |
| 20 | + ::: $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 21 | + | |
| 22 | + = note: this trait's method doesn't have the requirement `_ <: _` |
| 23 | + |
| 24 | +error[E0282]: type annotations needed |
| 25 | + --> $DIR/conflicting-impls.rs:14:5 |
| 26 | + | |
| 27 | +LL | fn try_from(_: Ty) -> Result<Self, Self::Error> { |
| 28 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type |
| 29 | + | |
| 30 | +note: the requirement `_ <: _` appears on the `impl`'s method `try_from` but not on the corresponding trait's method |
| 31 | + --> $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 32 | + | |
| 33 | + = note: in this trait |
| 34 | + ::: $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 35 | + | |
| 36 | + = note: this trait's method doesn't have the requirement `_ <: _` |
| 37 | + |
| 38 | +error: aborting due to 3 previous errors |
| 39 | + |
| 40 | +Some errors have detailed explanations: E0119, E0282. |
| 41 | +For more information about an error, try `rustc --explain E0119`. |
0 commit comments