Skip to content

Commit a561962

Browse files
authored
Vec::new is const tstable in 1.39 not 1.32
1 parent 3dbade6 commit a561962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ impl<T> Vec<T> {
317317
/// let mut vec: Vec<i32> = Vec::new();
318318
/// ```
319319
#[inline]
320-
#[rustc_const_stable(feature = "const_vec_new", since = "1.32.0")]
320+
#[rustc_const_stable(feature = "const_vec_new", since = "1.39.0")]
321321
#[stable(feature = "rust1", since = "1.0.0")]
322322
pub const fn new() -> Vec<T> {
323323
Vec { buf: RawVec::NEW, len: 0 }

0 commit comments

Comments
 (0)