Skip to content

Support T: ?Sized in Weak::new() #50513

Closed
@dtolnay

Description

@dtolnay

The std::rc::Weak::new and std::sync::Weak::new constructors added in #30467 should be able to work with T: ?Sized.

let _: Weak<str> = Weak::new();

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API 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