error[E0658]: `try` expression is experimental (see issue #31436) | |
--> $DIR/feature-gate-try_blocks.rs:14:33 | |
| | |
LL | let try_result: Option<_> = try { //~ ERROR `try` expression is experimental | |
| _________________________________^ | |
LL | | let x = 5; | |
LL | | x | |
LL | | }; | |
| |_____^ | |
| | |
= help: add #![feature(try_blocks)] to the crate attributes to enable | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0658`. |