2018-01-13 14:05:51 +01:00
|
|
|
error[E0658]: `catch` expression is experimental (see issue #31436)
|
2017-12-06 09:27:47 +01:00
|
|
|
--> $DIR/feature-gate-catch_expr.rs:12:24
|
|
|
|
|
|
|
|
|
|
|
12 | let catch_result = do catch { //~ ERROR `catch` expression is experimental
|
|
|
|
|
| ________________________^
|
|
|
|
|
13 | | let x = 5;
|
|
|
|
|
14 | | x
|
|
|
|
|
15 | | };
|
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
|
|
= help: add #![feature(catch_expr)] to the crate attributes to enable
|
|
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|