Guest User

Untitled

a guest
May 22nd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. fn main() {
  2. println!("{:?}", {
  3. unreachable!()
  4. });
  5. }
  6.  
  7.  
  8. /* ~~~~=== stderr ===~~~~
  9. Compiling playground v0.0.1 (file:///playground)
  10. warning: unreachable expression
  11. --> src/main.rs:4:22
  12. |
  13. 4 | println!("{:?}", {
  14. | ______________________^
  15. 5 | | unreachable!()
  16. 6 | | });
  17. | |_____^
  18. |
  19. = note: #[warn(unreachable_code)] on by default
  20.  
  21. Finished dev [unoptimized + debuginfo] target(s) in 0.49 secs
  22. Running `target/debug/playground`
  23. thread 'main' panicked at 'internal error: entered unreachable code', src/main.rs:5:9
  24. note: Run with `RUST_BACKTRACE=1` for a backtrace.
  25.  
  26. */
  27.  
  28. /* ~~~~=== stdout ===~~~~
  29.  
  30. */
Add Comment
Please, Sign In to add comment