@@ -8,15 +8,24 @@ LL | println!("{:?}", [0_usize; 33]);
8
8
= note: required by `std::fmt::Debug::fmt`
9
9
10
10
error[E0277]: arrays only have std trait implementations for lengths 0..=32
11
- --> $DIR/core-traits-no-impls-length-33.rs:9 :16
11
+ --> $DIR/core-traits-no-impls-length-33.rs:10 :16
12
12
|
13
13
LL | set.insert([0_usize; 33]);
14
14
| ^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[usize; 33]`
15
15
|
16
16
= note: required because of the requirements on the impl of `std::cmp::Eq` for `[usize; 33]`
17
17
18
+ error[E0277]: arrays only have std trait implementations for lengths 0..=32
19
+ --> $DIR/core-traits-no-impls-length-33.rs:8:19
20
+ |
21
+ LL | let mut set = HashSet::new();
22
+ | ^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[usize; 33]`
23
+ |
24
+ = note: required because of the requirements on the impl of `std::cmp::Eq` for `[usize; 33]`
25
+ = note: required by `std::collections::HashSet::<T>::new`
26
+
18
27
error[E0369]: binary operation `==` cannot be applied to type `[usize; 33]`
19
- --> $DIR/core-traits-no-impls-length-33.rs:14 :19
28
+ --> $DIR/core-traits-no-impls-length-33.rs:15 :19
20
29
|
21
30
LL | [0_usize; 33] == [1_usize; 33]
22
31
| ------------- ^^ ------------- [usize; 33]
@@ -26,7 +35,7 @@ LL | [0_usize; 33] == [1_usize; 33]
26
35
= note: an implementation of `std::cmp::PartialEq` might be missing for `[usize; 33]`
27
36
28
37
error[E0369]: binary operation `<` cannot be applied to type `[usize; 33]`
29
- --> $DIR/core-traits-no-impls-length-33.rs:19 :19
38
+ --> $DIR/core-traits-no-impls-length-33.rs:20 :19
30
39
|
31
40
LL | [0_usize; 33] < [1_usize; 33]
32
41
| ------------- ^ ------------- [usize; 33]
@@ -36,7 +45,7 @@ LL | [0_usize; 33] < [1_usize; 33]
36
45
= note: an implementation of `std::cmp::PartialOrd` might be missing for `[usize; 33]`
37
46
38
47
error[E0277]: the trait bound `&[usize; 33]: std::iter::IntoIterator` is not satisfied
39
- --> $DIR/core-traits-no-impls-length-33.rs:24 :14
48
+ --> $DIR/core-traits-no-impls-length-33.rs:25 :14
40
49
|
41
50
LL | for _ in &[0_usize; 33] {
42
51
| ^^^^^^^^^^^^^^ the trait `std::iter::IntoIterator` is not implemented for `&[usize; 33]`
@@ -48,7 +57,7 @@ LL | for _ in &[0_usize; 33] {
48
57
<&'a mut [T] as std::iter::IntoIterator>
49
58
= note: required by `std::iter::IntoIterator::into_iter`
50
59
51
- error: aborting due to 5 previous errors
60
+ error: aborting due to 6 previous errors
52
61
53
62
Some errors have detailed explanations: E0277, E0369.
54
63
For more information about an error, try `rustc --explain E0277`.
0 commit comments