Feedback
This commit is contained in:
parent
4af7cf37d4
commit
1156ce6f54
3 changed files with 4 additions and 3 deletions
|
|
@ -6,5 +6,5 @@ fn main() {
|
|||
let res: Option<bool> = try {
|
||||
true
|
||||
} catch { };
|
||||
//~^ ERROR `try {} catch` is not a valid syntax
|
||||
//~^ ERROR keyword `catch` cannot follow a `try` block
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error: `try {} catch` is not a valid syntax
|
||||
error: keyword `catch` cannot follow a `try` block
|
||||
--> $DIR/try-block-catch.rs:8:7
|
||||
|
|
||||
LL | } catch { };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue