Skip to content

Mismatch between sync and async drop gen? #140600

Open
@lovely-error

Description

@lovely-error

I expect that the async version would panic at compile time the same way sync version does

https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024&gist=4b0f956255c35cca27761291affcda87

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)A-monomorphizationArea: MonomorphizationC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions