]> git.lizzy.rs Git - rust.git/blob - tests/ui/feature-gates/feature-gate-try_blocks.stderr
Rollup merge of #106641 - chenyukang:yukang/fix-105761-segguest-this, r=estebank
[rust.git] / tests / ui / feature-gates / feature-gate-try_blocks.stderr
1 error[E0658]: `try` expression is experimental
2   --> $DIR/feature-gate-try_blocks.rs:4:33
3    |
4 LL |       let try_result: Option<_> = try {
5    |  _________________________________^
6 LL | |         let x = 5;
7 LL | |         x
8 LL | |     };
9    | |_____^
10    |
11    = note: see issue #31436 <https://github.com/rust-lang/rust/issues/31436> for more information
12    = help: add `#![feature(try_blocks)]` to the crate attributes to enable
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0658`.