-
Diverging functions
- Diverging functions are functions in rust that do not return. It has the return type
i
which is read “diverges”.
- Diverging functions are functions in rust that do not return. It has the return type
fn diverges() -> ! {
panic!("This function never returns!");
}