about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKampfkarren <boynedmaster@gmail.com>2019-04-10 14:39:51 -0700
committerKampfkarren <boynedmaster@gmail.com>2019-04-10 14:39:51 -0700
commit4af7cf37d46d614e72e791c13153ef9a706716e9 (patch)
tree99508ba7d76f879d3f04af9c16f243d2398a693d /src
parent2b6143126dacfd1ed0cb29b1da60c1e9dfa081b2 (diff)
downloadrust-4af7cf37d46d614e72e791c13153ef9a706716e9.tar.gz
rust-4af7cf37d46d614e72e791c13153ef9a706716e9.zip
Fix tests, I think
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/try-block/try-block-catch.rs3
-rw-r--r--src/test/ui/try-block/try-block-catch.stderr2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/test/ui/try-block/try-block-catch.rs b/src/test/ui/try-block/try-block-catch.rs
index d3a74c21422..a7dc41fc423 100644
--- a/src/test/ui/try-block/try-block-catch.rs
+++ b/src/test/ui/try-block/try-block-catch.rs
@@ -5,5 +5,6 @@
 fn main() {
     let res: Option<bool> = try {
         true
-    } catch { }; //~ ERROR `try {} catch` is not a valid syntax
+    } catch { };
+    //~^ ERROR `try {} catch` is not a valid syntax
 }
diff --git a/src/test/ui/try-block/try-block-catch.stderr b/src/test/ui/try-block/try-block-catch.stderr
index 3f5889f53bd..b54cc3ccbbb 100644
--- a/src/test/ui/try-block/try-block-catch.stderr
+++ b/src/test/ui/try-block/try-block-catch.stderr
@@ -1,7 +1,7 @@
 error: `try {} catch` is not a valid syntax
   --> $DIR/try-block-catch.rs:8:7
    |
-LL |     } catch { }; //~ ERROR `try {} catch` is not a valid syntax
+LL |     } catch { };
    |       ^^^^^
    |
    = help: try using `match` on the result of the `try` block instead