Skip to content

Commit daeb8ec

Browse files
jyn514tesuji
andcommitted
fix error compiling stage2
Co-Authored-By: lzutao <[email protected]>
1 parent 6272273 commit daeb8ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2399,7 +2399,7 @@ impl<T: Clone> From<&mut [T]> for Vec<T> {
23992399

24002400
#[stable(feature = "vec_from_array", since = "1.42.0")]
24012401
impl<T, const N: usize> From<[T; N]> for Vec<T> {
2402-
fn from(arr: [T; N]) -> Vec<T> {
2402+
fn from(arr: [T; N]) -> Self {
24032403
<[T]>::into_vec(box arr)
24042404
}
24052405
}

0 commit comments

Comments
 (0)