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