`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.
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.