]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/do-catch-suggests-try.rs
Rollup merge of #59880 - solson:transmute-float, r=alexcrichton
[rust.git] / src / test / ui / parser / do-catch-suggests-try.rs
1 fn main() {
2     let _: Option<()> = do catch {};
3     //~^ ERROR found removed `do catch` syntax
4     //~^^ HELP Following RFC #2388, the new non-placeholder syntax is `try`
5 }