Fix tests, I think
This commit is contained in:
parent
2b6143126d
commit
4af7cf37d4
src/test/ui/try-block
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user