summaryrefslogtreecommitdiffstats
path: root/tests/ui/try-block/try-block-catch.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/try-block/try-block-catch.stderr')
-rw-r--r--tests/ui/try-block/try-block-catch.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/try-block/try-block-catch.stderr b/tests/ui/try-block/try-block-catch.stderr
new file mode 100644
index 000000000..39cf943f4
--- /dev/null
+++ b/tests/ui/try-block/try-block-catch.stderr
@@ -0,0 +1,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
+