try $body:block
in a macro is not recognized as a try block
#112952
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
C-bug
Category: This is a bug.
F-try_blocks
`#![feature(try_blocks)]`
I tried this code:
I expected to see this happen:
Instead, this happened:
Note that this works fine for similar expressions, such as
if
expressions:Meta
rustc --version --verbose
:Also reproduces on nightly
1.72.0-nightly (2023-06-21 065a1f5df9c2f1d93269)
(tested on the playground)@rustbot modify labels +A-macros +F-try_blocks
The text was updated successfully, but these errors were encountered: