Skip to content

Should Option::expect be parameterized over Any + Send? #14008

Closed
@alexcrichton

Description

@alexcrichton

In the extraction of the option module to libcore, the expect method was left to be defined in libstd. It's uncertain whether this Any + Send parameterization is necessary. If the method only took &str it could be defined in libcore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions