]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/do-catch-suggests-try.rs
Merge commit '03f01bbe901d60b71cf2c5ec766aef5e532ab79d' into update_cg_clif-2020...
[rust.git] / src / test / ui / parser / do-catch-suggests-try.rs
1 #![feature(try_blocks)]
2
3 fn main() {
4     let _: Option<()> = do catch {};
5     //~^ ERROR found removed `do catch` syntax
6     //~| replace with the new syntax
7     //~| following RFC #2388, the new non-placeholder syntax is `try`
8
9     let _recovery_witness: () = 1; //~ ERROR mismatched types
10 }