Guest User

Untitled

a guest
Sep 12th, 2019
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #![allow(unreachable_code)]
  2.  
  3.  
  4. fn main() {
  5. println!("{:?}", {
  6. vec[1, 2]]
  7. });
  8. }
  9.  
  10.  
  11. /* ~~~~=== stderr ===~~~~
  12. Compiling playground v0.0.1 (/playground)
  13. error: unexpected close delimiter: `)`
  14. --> src/main.rs:7:6
  15. |
  16. 7 | });
  17. | ^ unexpected close delimiter
  18.  
  19. error: incorrect close delimiter: `]`
  20. --> src/main.rs:6:18
  21. |
  22. 5 | println!("{:?}", {
  23. | - un-closed delimiter
  24. 6 | vec[1, 2]]
  25. | ^ incorrect close delimiter
  26.  
  27. error: incorrect close delimiter: `}`
  28. --> src/main.rs:7:5
  29. |
  30. 5 | println!("{:?}", {
  31. | - un-closed delimiter
  32. 6 | vec[1, 2]]
  33. 7 | });
  34. | ^ incorrect close delimiter
  35.  
  36. error: aborting due to 3 previous errors
  37.  
  38. error: Could not compile `playground`.
  39.  
  40. To learn more, run the command again with --verbose.
  41.  
  42. */
  43.  
  44. /* ~~~~=== stdout ===~~~~
  45.  
  46. */
RAW Paste Data