rust/tests/ui/never_type/from_infer_breaking_with_unit_fallback.unit.stderr
2024-05-17 15:01:43 +02:00

13 lines
488 B
Plaintext

error[E0277]: the trait bound `E: From<()>` is not satisfied
--> $DIR/from_infer_breaking_with_unit_fallback.rs:25:6
|
LL | <E as From<_>>::from(never); // Should the inference fail?
| ^ the trait `From<()>` is not implemented for `E`
|
= help: the trait `From<!>` is implemented for `E`
= help: for that trait implementation, expected `!`, found `()`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.