We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e47fec5 commit d860defCopy full SHA for d860def
src/libcore/alloc.rs
@@ -120,6 +120,7 @@ impl Layout {
120
121
/// Constructs a `Layout` suitable for holding a value of type `T`.
122
#[stable(feature = "alloc_layout", since = "1.28.0")]
123
+ #[rustc_const_stable(feature = "alloc_layout_const_new", since = "1.42.0")]
124
#[inline]
125
pub const fn new<T>() -> Self {
126
let (size, align) = size_align::<T>();
0 commit comments