mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
11 lines
293 B
Rust
11 lines
293 B
Rust
#![feature(try_blocks)]
|
|
|
|
fn main() {
|
|
let _: Option<()> = do catch {};
|
|
//~^ ERROR found removed `do catch` syntax
|
|
//~| replace with the new syntax
|
|
//~| following RFC #2388, the new non-placeholder syntax is `try`
|
|
|
|
let _recovery_witness: () = 1; //~ ERROR mismatched types
|
|
}
|