Skip to content

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

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();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-api[DEPRECATED; DO NOT USE]

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions