You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiling playground v0.0.1 (/playground)
error[E0271]: type mismatch resolving `<Result<!, ()> as Try>::Output == ()`
--> src/main.rs:7:5
|
7 | };
| ^ expected `()`, found `!`
|
= note: expected unit type `()`
found type `!`
For more information about this error, try `rustc --explain E0271`.
error: could not compile `playground` (bin "playground") due to 1 previous error
Consider this code:
It compiles.
Rustfmt adds a semicolon here:
This causes a compilation error:
Playground link
Previously reported here.
Meta
The text was updated successfully, but these errors were encountered: