summary refs log tree commit diff
path: root/src/test/ui/feature-gate-catch_expr.stderr
blob: 4b3bfbbe27ac87bcc7a8427061121a5c08b57c10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0658]: `catch` expression is experimental (see issue #31436)
  --> $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