Add inline version of duplicate
#6
Labels
D-accepted
A decision (D) has been made and the issue will be worked on
I-feature
This issue (I) regards a (potential) feature in the project
T-accepted
Triage (T): Initial review accepted issue/PR as valid
Introduce a function-like procedural macro with the same functionality as
duplicate
.duplicate
can only be used where attributes are allowed. Notably, attributes are currently not allowed on statements. This is a significant limitation. Therefore, we can alleviate this by introducing a function-like version ofduplicate
that can be used where the original is not allowed.Example:
Expands to:
The text was updated successfully, but these errors were encountered: