]> git.lizzy.rs Git - rust.git/blob - src/test/ui/try-block/try-block-catch.rs
Rollup merge of #99064 - lyming2007:issue-97687-fix, r=estebank
[rust.git] / src / test / ui / try-block / try-block-catch.rs
1 // compile-flags: --edition 2018
2
3 #![feature(try_blocks)]
4
5 fn main() {
6     let res: Option<bool> = try {
7         true
8     } catch { };
9     //~^ ERROR keyword `catch` cannot follow a `try` block
10 }