@@ -8,15 +8,24 @@ LL | println!("{:?}", [0_usize; 33]);
88 = note: required by `std::fmt::Debug::fmt`
99
1010error[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
1212 |
1313LL | set.insert([0_usize; 33]);
1414 | ^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[usize; 33]`
1515 |
1616 = note: required because of the requirements on the impl of `std::cmp::Eq` for `[usize; 33]`
1717
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+
1827error[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
2029 |
2130LL | [0_usize; 33] == [1_usize; 33]
2231 | ------------- ^^ ------------- [usize; 33]
@@ -26,7 +35,7 @@ LL | [0_usize; 33] == [1_usize; 33]
2635 = note: an implementation of `std::cmp::PartialEq` might be missing for `[usize; 33]`
2736
2837error[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
3039 |
3140LL | [0_usize; 33] < [1_usize; 33]
3241 | ------------- ^ ------------- [usize; 33]
@@ -36,7 +45,7 @@ LL | [0_usize; 33] < [1_usize; 33]
3645 = note: an implementation of `std::cmp::PartialOrd` might be missing for `[usize; 33]`
3746
3847error[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
4049 |
4150LL | for _ in &[0_usize; 33] {
4251 | ^^^^^^^^^^^^^^ the trait `std::iter::IntoIterator` is not implemented for `&[usize; 33]`
@@ -48,7 +57,7 @@ LL | for _ in &[0_usize; 33] {
4857 <&'a mut [T] as std::iter::IntoIterator>
4958 = note: required by `std::iter::IntoIterator::into_iter`
5059
51- error: aborting due to 5 previous errors
60+ error: aborting due to 6 previous errors
5261
5362Some errors have detailed explanations: E0277, E0369.
5463For more information about an error, try `rustc --explain E0277`.
0 commit comments