|
| 1 | +error[E0277]: the trait bound `[T; _]: From<()>` is not satisfied |
| 2 | + --> $DIR/hash-tyvid-regression-1.rs:9:5 |
| 3 | + | |
| 4 | +LL | <[T; N.get()]>::try_from(()) |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<()>` is not implemented for `[T; _]` |
| 6 | + | |
| 7 | + = note: required because of the requirements on the impl of `Into<[T; _]>` for `()` |
| 8 | + = note: required because of the requirements on the impl of `TryFrom<()>` for `[T; _]` |
| 9 | +note: required by `try_from` |
| 10 | + --> $SRC_DIR/core/src/convert/mod.rs:LL:COL |
| 11 | + | |
| 12 | +LL | fn try_from(value: T) -> Result<Self, Self::Error>; |
| 13 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 14 | + |
| 15 | +error[E0308]: mismatched types |
| 16 | + --> $DIR/hash-tyvid-regression-1.rs:9:5 |
| 17 | + | |
| 18 | +LL | <[T; N.get()]>::try_from(()) |
| 19 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result` |
| 20 | + | |
| 21 | + = note: expected unit type `()` |
| 22 | + found enum `Result<[T; _], Infallible>` |
| 23 | +help: consider using a semicolon here |
| 24 | + | |
| 25 | +LL | <[T; N.get()]>::try_from(()); |
| 26 | + | + |
| 27 | +help: try adding a return type |
| 28 | + | |
| 29 | +LL | -> Result<[T; _], Infallible> where |
| 30 | + | +++++++++++++++++++++++++++++ |
| 31 | + |
| 32 | +error: aborting due to 2 previous errors |
| 33 | + |
| 34 | +Some errors have detailed explanations: E0277, E0308. |
| 35 | +For more information about an error, try `rustc --explain E0277`. |
0 commit comments