[][src]Function tao_of_rust::ch02::primitives::nerver

pub fn nerver()

基本数据类型:nerver类型

Basic usage:

#![feature(never_type)]

fn foo() -> u32 {
    let x: ! = {
        return 123
    };
}

fn nerver(){
    let num: Option<u32> = Some(42);
    match num {
        Some(num) => num,
        None => panic!("Nothing!"),
    };
}
foo();
nerver();Run