Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- let x = Some(2); let y = Some(3); do catch { x? + y? }
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error[E0658]: `catch` expression is experimental (see issue #31436)
- --> src/main.rs:5:43
- |
- 5 | let x = Some(2); let y = Some(3); do catch { x? + y? }
- | ^^^^^^^^^^^^^^^^^^^^
- |
- = help: add #![feature(catch_expr)] to the crate attributes to enable
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0658`.
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment