Skip to content

Instantly share code, notes, and snippets.

/playground.rs
Created Dec 7, 2017

Embed
What would you like to do?
Rust code shared from the playground
#![allow(unreachable_code)]
// コンパイル可能だったが、2017-12-07 の nightly では不可。
fn dont_return() -> ! {
panic!();
// (ここから到達不可能)
1
}
fn main() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.