2019-12-03 06:35:05 -06:00
|
|
|
#![feature(try_blocks)]
|
|
|
|
|
2018-07-24 19:55:36 -05:00
|
|
|
fn main() {
|
|
|
|
let _: Option<()> = do catch {};
|
|
|
|
//~^ ERROR found removed `do catch` syntax
|
2019-12-03 06:35:05 -06:00
|
|
|
//~| replace with the new syntax
|
|
|
|
//~| following RFC #2388, the new non-placeholder syntax is `try`
|
|
|
|
|
|
|
|
let _recovery_witness: () = 1; //~ ERROR mismatched types
|
2018-07-24 19:55:36 -05:00
|
|
|
}
|