blob: af85373e120b575ac5831e4809a4bfdcbdbb15a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//@ dont-require-annotations: NOTE
#![feature(try_blocks)]
fn main() {
let _: Option<()> = do catch {};
//~^ ERROR found removed `do catch` syntax
//~| HELP replace with the new syntax
//~| NOTE following RFC #2388, the new non-placeholder syntax is `try`
let _recovery_witness: () = 1; //~ ERROR mismatched types
}
|