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