Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- unreachable!()
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- warning: unreachable expression
- --> src/main.rs:4:22
- |
- 4 | println!("{:?}", {
- | ______________________^
- 5 | | unreachable!()
- 6 | | });
- | |_____^
- |
- = note: #[warn(unreachable_code)] on by default
- Finished dev [unoptimized + debuginfo] target(s) in 0.49 secs
- Running `target/debug/playground`
- thread 'main' panicked at 'internal error: entered unreachable code', src/main.rs:5:9
- note: Run with `RUST_BACKTRACE=1` for a backtrace.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment