Skip to content

Commit 4af7cf3

Browse files
committed
Fix tests, I think
1 parent 2b61431 commit 4af7cf3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/test/ui/try-block/try-block-catch.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
fn main() {
66
let res: Option<bool> = try {
77
true
8-
} catch { }; //~ ERROR `try {} catch` is not a valid syntax
8+
} catch { };
9+
//~^ ERROR `try {} catch` is not a valid syntax
910
}

src/test/ui/try-block/try-block-catch.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: `try {} catch` is not a valid syntax
22
--> $DIR/try-block-catch.rs:8:7
33
|
4-
LL | } catch { }; //~ ERROR `try {} catch` is not a valid syntax
4+
LL | } catch { };
55
| ^^^^^
66
|
77
= help: try using `match` on the result of the `try` block instead

0 commit comments

Comments
 (0)