Guest User

Untitled

a guest
Jul 15th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. fn main() {
  2. println!("{:?}", {
  3. let x = Some(2); let y = Some(3); let z = (||{ Some(x? + y?) }(); z
  4. });
  5. }
  6.  
  7.  
  8. /* ~~~~=== stderr ===~~~~
  9. Compiling playground v0.0.1 (file:///playground)
  10. error: incorrect close delimiter: `}`
  11. --> src/main.rs:6:5
  12. |
  13. 6 | });
  14. | ^
  15. |
  16. note: unclosed delimiter
  17. --> src/main.rs:5:51
  18. |
  19. 5 | let x = Some(2); let y = Some(3); let z = (||{ Some(x? + y?) }(); z
  20. | ^
  21.  
  22. error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;`
  23. --> src/main.rs:5:73
  24. |
  25. 5 | let x = Some(2); let y = Some(3); let z = (||{ Some(x? + y?) }(); z
  26. | ^ expected one of `)`, `,`, `.`, `?`, or an operator here
  27.  
  28. error: aborting due to 2 previous errors
  29.  
  30. error: Could not compile `playground`.
  31.  
  32. To learn more, run the command again with --verbose.
  33.  
  34. */
  35.  
  36. /* ~~~~=== stdout ===~~~~
  37.  
  38. */
Add Comment
Please, Sign In to add comment