stabilize (version: 1.26.0) Box::leak, cc #46179
This commit is contained in:
parent
3bcda48a30
commit
467b5cfcb7
1 changed files with 1 additions and 2 deletions
|
|
@ -381,8 +381,7 @@ impl<T: ?Sized> Box<T> {
|
|||
/// assert_eq!(*static_ref, [4, 2, 3]);
|
||||
/// }
|
||||
/// ```
|
||||
#[unstable(feature = "box_leak", reason = "needs an FCP to stabilize",
|
||||
issue = "46179")]
|
||||
#[stable(feature = "box_leak", since = "1.26.0")]
|
||||
#[inline]
|
||||
pub fn leak<'a>(b: Box<T>) -> &'a mut T
|
||||
where
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue