1+ error[E0277]: arrays only have std trait implementations for lengths 0..=32
2+ --> $DIR/alloc-types-no-impls-length-33.rs:6:29
3+ |
4+ LL | let v: Vec<_> = [0; 33].into();
5+ | ^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[{integer}; 33]`
6+ |
7+ = note: required because of the requirements on the impl of `std::convert::From<[{integer}; 33]>` for `std::vec::Vec<{integer}>`
8+ = note: required because of the requirements on the impl of `std::convert::Into<std::vec::Vec<{integer}>>` for `[{integer}; 33]`
9+
110error[E0277]: the trait bound `std::boxed::Box<[i32; 33]>: std::convert::From<std::boxed::Box<[i32]>>` is not satisfied
2- --> $DIR/alloc-types-no-impls-length-33.rs:7 :23
11+ --> $DIR/alloc-types-no-impls-length-33.rs:12 :23
312 |
413LL | let boxed_array = <Box<[i32; 33]>>::try_from(boxed_slice);
514 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<std::boxed::Box<[i32]>>` is not implemented for `std::boxed::Box<[i32; 33]>`
@@ -14,7 +23,7 @@ LL | let boxed_array = <Box<[i32; 33]>>::try_from(boxed_slice);
1423 = note: required because of the requirements on the impl of `std::convert::TryFrom<std::boxed::Box<[i32]>>` for `std::boxed::Box<[i32; 33]>`
1524
1625error[E0277]: the trait bound `std::boxed::Box<[i32; 33]>: std::convert::TryFrom<std::boxed::Box<[i32]>>` is not satisfied
17- --> $DIR/alloc-types-no-impls-length-33.rs:7 :23
26+ --> $DIR/alloc-types-no-impls-length-33.rs:12 :23
1827 |
1928LL | let boxed_array = <Box<[i32; 33]>>::try_from(boxed_slice);
2029 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::TryFrom<std::boxed::Box<[i32]>>` is not implemented for `std::boxed::Box<[i32; 33]>`
@@ -23,7 +32,7 @@ LL | let boxed_array = <Box<[i32; 33]>>::try_from(boxed_slice);
2332 <std::boxed::Box<[T; _]> as std::convert::TryFrom<std::boxed::Box<[T]>>>
2433
2534error[E0277]: the trait bound `std::rc::Rc<[i32; 33]>: std::convert::From<std::rc::Rc<[i32]>>` is not satisfied
26- --> $DIR/alloc-types-no-impls-length-33.rs:14 :23
35+ --> $DIR/alloc-types-no-impls-length-33.rs:19 :23
2736 |
2837LL | let boxed_array = <Rc<[i32; 33]>>::try_from(boxed_slice);
2938 | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<std::rc::Rc<[i32]>>` is not implemented for `std::rc::Rc<[i32; 33]>`
@@ -38,7 +47,7 @@ LL | let boxed_array = <Rc<[i32; 33]>>::try_from(boxed_slice);
3847 = note: required because of the requirements on the impl of `std::convert::TryFrom<std::rc::Rc<[i32]>>` for `std::rc::Rc<[i32; 33]>`
3948
4049error[E0277]: the trait bound `std::rc::Rc<[i32; 33]>: std::convert::TryFrom<std::rc::Rc<[i32]>>` is not satisfied
41- --> $DIR/alloc-types-no-impls-length-33.rs:14 :23
50+ --> $DIR/alloc-types-no-impls-length-33.rs:19 :23
4251 |
4352LL | let boxed_array = <Rc<[i32; 33]>>::try_from(boxed_slice);
4453 | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::TryFrom<std::rc::Rc<[i32]>>` is not implemented for `std::rc::Rc<[i32; 33]>`
@@ -47,7 +56,7 @@ LL | let boxed_array = <Rc<[i32; 33]>>::try_from(boxed_slice);
4756 <std::rc::Rc<[T; _]> as std::convert::TryFrom<std::rc::Rc<[T]>>>
4857
4958error[E0277]: the trait bound `std::sync::Arc<[i32; 33]>: std::convert::From<std::sync::Arc<[i32]>>` is not satisfied
50- --> $DIR/alloc-types-no-impls-length-33.rs:21 :23
59+ --> $DIR/alloc-types-no-impls-length-33.rs:26 :23
5160 |
5261LL | let boxed_array = <Arc<[i32; 33]>>::try_from(boxed_slice);
5362 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<std::sync::Arc<[i32]>>` is not implemented for `std::sync::Arc<[i32; 33]>`
@@ -62,14 +71,14 @@ LL | let boxed_array = <Arc<[i32; 33]>>::try_from(boxed_slice);
6271 = note: required because of the requirements on the impl of `std::convert::TryFrom<std::sync::Arc<[i32]>>` for `std::sync::Arc<[i32; 33]>`
6372
6473error[E0277]: the trait bound `std::sync::Arc<[i32; 33]>: std::convert::TryFrom<std::sync::Arc<[i32]>>` is not satisfied
65- --> $DIR/alloc-types-no-impls-length-33.rs:21 :23
74+ --> $DIR/alloc-types-no-impls-length-33.rs:26 :23
6675 |
6776LL | let boxed_array = <Arc<[i32; 33]>>::try_from(boxed_slice);
6877 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::TryFrom<std::sync::Arc<[i32]>>` is not implemented for `std::sync::Arc<[i32; 33]>`
6978 |
7079 = help: the following implementations were found:
7180 <std::sync::Arc<[T; _]> as std::convert::TryFrom<std::sync::Arc<[T]>>>
7281
73- error: aborting due to 6 previous errors
82+ error: aborting due to 7 previous errors
7483
7584For more information about this error, try `rustc --explain E0277`.
0 commit comments