We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2843e64 commit b61a4c2Copy full SHA for b61a4c2
src/libcore/mem.rs
@@ -959,6 +959,7 @@ impl<T> ManuallyDrop<T> {
959
/// ManuallyDrop::new(Box::new(()));
960
/// ```
961
#[stable(feature = "manually_drop", since = "1.20.0")]
962
+ #[rustc_const_unstable(feature = "const_manually_drop_new")]
963
#[inline]
964
pub const fn new(value: T) -> ManuallyDrop<T> {
965
ManuallyDrop { value: value }
0 commit comments