rust/src/test/ui/parser/do-catch-suggests-try.stderr
2019-09-06 03:46:08 +01:00

10 lines
276 B
Text

error: found removed `do catch` syntax
--> $DIR/do-catch-suggests-try.rs:2:25
|
LL | let _: Option<()> = do catch {};
| ^^
|
= help: following RFC #2388, the new non-placeholder syntax is `try`
error: aborting due to previous error