2021-02-18 13:47:01 +00:00
|
|
|
error[E0308]: `match` arms have incompatible types
|
|
|
|
--> $DIR/issue-81839.rs:11:14
|
|
|
|
|
|
|
|
|
LL | / match num {
|
|
|
|
LL | | 1 => {
|
|
|
|
LL | | cx.answer_str("hi");
|
2024-02-15 14:38:52 +00:00
|
|
|
| | --------------------
|
|
|
|
| | | |
|
|
|
|
| | | help: consider removing this semicolon
|
|
|
|
| | this is found to be of type `()`
|
2021-02-18 13:47:01 +00:00
|
|
|
LL | | }
|
|
|
|
LL | | _ => cx.answer_str("hi"),
|
2023-02-10 18:03:54 +00:00
|
|
|
| | ^^^^^^^^^^^^^^^^^^^ expected `()`, found future
|
2021-02-18 13:47:01 +00:00
|
|
|
LL | | }
|
|
|
|
| |_____- `match` arms have incompatible types
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2021-02-18 13:47:01 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|