Implicit returns with multiple #cfg[...] cause compilation errors #38337
Labels
A-parser
Area: The lexing & parsing of Rust source code to an AST
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
If there are two different #cfg[...] one after each other and they utilize implicit returns (don't have a trailing ';'), then a compilation error will occur.
Example of the error: https://is.gd/fiScoc
Fixed: https://is.gd/Z87TE0
I believe this is a compiler bug because in the fixed version there's still an implicit return as part of the last #cfg[...] and there isn't an error about it.
The text was updated successfully, but these errors were encountered: