]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/do-catch-suggests-try.rs
Stabilize `param_attrs` in Rust 1.39.0
[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 }