mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-13 04:26:48 +00:00
stabilize (version: 1.26.0) Box::leak, cc #46179
This commit is contained in:
parent
3bcda48a30
commit
467b5cfcb7
@ -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…
Reference in New Issue
Block a user