never type
The type of code that never finishes, like panic! or an endless loop.
The never type ! is the type of expressions that never produce a value (panic!, loop without break, process::exit).
Examples
In
match place { 1 => 10, _ => panic!("no points for place {place}") }, thepanic!arm has type!, so it fits where au32is expected.
See also