summaryrefslogtreecommitdiffstats
path: root/src/test/ui/try-block/try-block-catch.stderr
blob: 39cf943f4d8ab8849fd0ff5eafe9178bb9562506 (plain)
1
2
3
4
5
6
7
8
9
10
error: keyword `catch` cannot follow a `try` block
  --> $DIR/try-block-catch.rs:8:7
   |
LL |     } catch { };
   |       ^^^^^
   |
   = help: try using `match` on the result of the `try` block instead

error: aborting due to previous error