rust/src/test/ui/feature-gate-catch_expr.stderr

16 lines
491 B
Plaintext
Raw Normal View History

error[E0658]: `catch` expression is experimental (see issue #31436)
--> $DIR/feature-gate-catch_expr.rs:12:24
|
2018-02-23 03:42:32 +03:00
LL | let catch_result = do catch { //~ ERROR `catch` expression is experimental
| ________________________^
2018-02-23 03:42:32 +03:00
LL | | let x = 5;
LL | | x
LL | | };
| |_____^
|
= help: add #![feature(catch_expr)] to the crate attributes to enable
error: aborting due to previous error
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0658`.