Created
December 7, 2017 13:29
-
-
Save anonymous/d554dfe63da1c64ed89dfa643419743d to your computer and use it in GitHub Desktop.
Rust code shared from the playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![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