Never type

Syntax
NeverType : !

The never type ! is a type with no values, representing the result of computations that never complete. Expressions of type ! can be coerced into any other type.


#![allow(unused_variables)]
fn main() {
let x: ! = panic!();
// Can be coerced into any type.
let y: u32 = x;
}