Skip to content

Change error contains interior mutability to may contain interior mutability? #40313

Closed
@dpc

Description

@dpc

The following error is a bit misleading:

the type SomeTrait + 'static contains interior mutability and a reference may not be safely transferrable across a catch_unwind boundary

Since SomeTrait is a trait object, it seems to me may contain (...) is more precise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions