Skip to main content

One doc tagged with "panic"

View all tags

`panic!` and Unrecoverable Errors

In the previous article, we learned how to handle recoverable errors with the Result enum. However, sometimes errors are not recoverable. For these situations, Rust has the panic! macro.