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
+
1
10
error[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
3
12
|
4
13
LL | let boxed_array = <Box<[i32; 33]>>::try_from(boxed_slice);
5
14
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ 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);
14
23
= note: required because of the requirements on the impl of `std::convert::TryFrom<std::boxed::Box<[i32]>>` for `std::boxed::Box<[i32; 33]>`
15
24
16
25
error[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
18
27
|
19
28
LL | let boxed_array = <Box<[i32; 33]>>::try_from(boxed_slice);
20
29
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ 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);
23
32
<std::boxed::Box<[T; _]> as std::convert::TryFrom<std::boxed::Box<[T]>>>
24
33
25
34
error[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
27
36
|
28
37
LL | let boxed_array = <Rc<[i32; 33]>>::try_from(boxed_slice);
29
38
| ^^^^^^^^^^^^^^^^^^^^^^^^^ 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);
38
47
= note: required because of the requirements on the impl of `std::convert::TryFrom<std::rc::Rc<[i32]>>` for `std::rc::Rc<[i32; 33]>`
39
48
40
49
error[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
42
51
|
43
52
LL | let boxed_array = <Rc<[i32; 33]>>::try_from(boxed_slice);
44
53
| ^^^^^^^^^^^^^^^^^^^^^^^^^ 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);
47
56
<std::rc::Rc<[T; _]> as std::convert::TryFrom<std::rc::Rc<[T]>>>
48
57
49
58
error[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
51
60
|
52
61
LL | let boxed_array = <Arc<[i32; 33]>>::try_from(boxed_slice);
53
62
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ 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);
62
71
= note: required because of the requirements on the impl of `std::convert::TryFrom<std::sync::Arc<[i32]>>` for `std::sync::Arc<[i32; 33]>`
63
72
64
73
error[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
66
75
|
67
76
LL | let boxed_array = <Arc<[i32; 33]>>::try_from(boxed_slice);
68
77
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::TryFrom<std::sync::Arc<[i32]>>` is not implemented for `std::sync::Arc<[i32; 33]>`
69
78
|
70
79
= help: the following implementations were found:
71
80
<std::sync::Arc<[T; _]> as std::convert::TryFrom<std::sync::Arc<[T]>>>
72
81
73
- error: aborting due to 6 previous errors
82
+ error: aborting due to 7 previous errors
74
83
75
84
For more information about this error, try `rustc --explain E0277`.
0 commit comments