[][src]Function tao_of_rust::ch03::bottom_type::bottom_type

pub fn bottom_type()

底类型:应用

Base usage

#![feature(never_type)]
fn foo() -> ! {
    // do something
    loop { println!("jh"); }
}
let i = if false {
    foo();
} else {
    100
};
assert_eq!(i, 100);Run