A Rust program must be maximally prepared to handle unforeseen errors, but unexpected things can always happen, like integer division by zero:
// see code in Chapter 5/code/error_div.rs let x = 3; let y = 0; x / y;
The program stops with the following message:
thread '<main>' panicked at 'attempted to divide by zero'