Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. #![allow(unreachable_code)]
  2.  
  3.  
  4. fn main() {
  5. println!("{:?}", {
  6. ~crate indexmap
  7. });
  8. }
  9.  
  10.  
  11. /* ~~~~=== stderr ===~~~~
  12. Compiling playground v0.0.1 (/playground)
  13. error: `~` cannot be used as a unary operator
  14. --> src/main.rs:6:9
  15. |
  16. 6 | ~crate indexmap
  17. | ^ help: use `!` to perform bitwise negation
  18.  
  19. error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `indexmap`
  20. --> src/main.rs:6:16
  21. |
  22. 6 | ~crate indexmap
  23. | ^^^^^^^^ expected one of 8 possible tokens here
  24.  
  25. error[E0423]: expected value, found module `crate`
  26. --> src/main.rs:6:10
  27. |
  28. 6 | ~crate indexmap
  29. | ^^^^^ not a value
  30.  
  31. error: aborting due to 3 previous errors
  32.  
  33. For more information about this error, try `rustc --explain E0423`.
  34. error: Could not compile `playground`.
  35.  
  36. To learn more, run the command again with --verbose.
  37.  
  38. */
  39.  
  40. /* ~~~~=== stdout ===~~~~
  41.  
  42. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement