blob: d165015611d04c16396c30b3d2e0b7481146b1de (
plain)
1
2
3
4
5
6
7
8
9
10
|
// compile-flags: --edition 2018
#![feature(try_blocks)]
fn main() {
let res: Option<bool> = try {
true
} catch { };
//~^ ERROR keyword `catch` cannot follow a `try` block
}
|