2019-10-31 16:28:36 +00:00
|
|
|
error[E0658]: `try` expression is experimental
|
|
|
|
--> $DIR/feature-gate-try_blocks.rs:4:33
|
2017-12-06 08:27:47 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let try_result: Option<_> = try {
|
2018-07-22 03:59:44 +00:00
|
|
|
| _________________________________^
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | | let x = 5;
|
|
|
|
LL | | x
|
|
|
|
LL | | };
|
2017-12-06 08:27:47 +00:00
|
|
|
| |_____^
|
|
|
|
|
|
2020-02-07 12:07:02 +00:00
|
|
|
= note: see issue #31436 <https://github.com/rust-lang/rust/issues/31436> for more information
|
2019-07-09 09:32:08 +00:00
|
|
|
= help: add `#![feature(try_blocks)]` to the crate attributes to enable
|
2024-01-10 06:39:02 +00:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2017-12-06 08:27:47 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2017-12-06 08:27:47 +00:00
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0658`.
|