Skip to content

Structs with a raw pointer warn whether or not you derive Copy #21272

@kornelski

Description

@kornelski

Damned if you do, damned if you don't:

struct foo {
bar: *mut T;
}

Suggests deriving Copy, but if Copy is derived, it suggests not deriving it.

Perhaps suggestion "type could implement Copy;" shouldn't be shown when the type has raw pointers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions