Fix tests, I think

This commit is contained in:
Kampfkarren 2019-04-10 14:39:51 -07:00
parent 2b6143126d
commit 4af7cf37d4
2 changed files with 3 additions and 2 deletions

View File

@ -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
}

View File

@ -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