Feature gate: #![feature(const_weak_new)]
This is a tracking issue for constification for creation of dangling weak reference counted pointers.
Public API
// alloc::rc
impl<T> Weak<T> {
pub const fn new() -> Weak<T>;
}
// alloc::sync
impl<T> Weak<T> {
pub const fn new() -> Weak<T>;
}
Steps / History
Unresolved Questions
Feature gate:
#![feature(const_weak_new)]This is a tracking issue for
constification for creation of dangling weak reference counted pointers.Public API
Steps / History
Unresolved Questions