]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/do-catch-suggests-try.rs
Rollup merge of #91699 - jsha:webkit-appearance-search-input, r=GuillaumeGomez
[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 }