Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #![allow(unreachable_code)]
  2.  
  3.  
  4. fn main() {
  5. println!("{:?}", {
  6. println!("{: 5>}", 42);
  7. });
  8. }
  9.  
  10.  
  11. /* ~~~~=== stderr ===~~~~
  12. Compiling playground v0.0.1 (/playground)
  13. error: invalid format string: expected `'}'`, found `'5'`
  14. --> src/main.rs:6:22
  15. |
  16. 6 | println!("{: 5>}", 42);
  17. | - ^ expected `}` in format string
  18. | |
  19. | because of this opening brace
  20. |
  21. = note: if you intended to print `{`, you can escape it using `{{`
  22.  
  23. error: aborting due to previous error
  24.  
  25. error: Could not compile `playground`.
  26.  
  27. To learn more, run the command again with --verbose.
  28.  
  29. */
  30.  
  31. /* ~~~~=== stdout ===~~~~
  32.  
  33. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement