Guest User

Untitled

a guest
Apr 26th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #![feature(catch_expr)]
  2.  
  3. fn main() {
  4. println!("{:?}", {
  5. do catch { 4 }
  6. });
  7. }
  8.  
  9.  
  10. /* ~~~~=== stderr ===~~~~
  11. Compiling playground v0.0.1 (file:///playground)
  12. error[E0284]: type annotations required: cannot resolve `<_ as std::ops::Try>::Ok == _`
  13. --> src/main.rs:5:19
  14. |
  15. 5 | do catch { 4 }
  16. | ^^^^^
  17.  
  18. error: aborting due to previous error
  19.  
  20. For more information about this error, try `rustc --explain E0284`.
  21. error: Could not compile `playground`.
  22.  
  23. To learn more, run the command again with --verbose.
  24.  
  25. */
  26.  
  27. /* ~~~~=== stdout ===~~~~
  28.  
  29. */
Add Comment
Please, Sign In to add comment