Error about drop in const fn
without any dropping happening
#60964
Labels
A-const-fn
Area: const fn foo(..) {..}. Pure functions which can be applied at compile time.
A-destructors
Area: Destructors (`Drop`, …)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The
take_inner
function won't ever evaluate a destructor. This is a bug inconst_qualif
I think(Playground)
Errors:
The text was updated successfully, but these errors were encountered: