Vec::new is const tstable in 1.39 not 1.32
This commit is contained in:
parent
3dbade652e
commit
a56196205b
@ -317,7 +317,7 @@ impl<T> Vec<T> {
|
||||
/// let mut vec: Vec<i32> = Vec::new();
|
||||
/// ```
|
||||
#[inline]
|
||||
#[rustc_const_stable(feature = "const_vec_new", since = "1.32.0")]
|
||||
#[rustc_const_stable(feature = "const_vec_new", since = "1.39.0")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub const fn new() -> Vec<T> {
|
||||
Vec { buf: RawVec::NEW, len: 0 }
|
||||
|
Loading…
Reference in New Issue
Block a user