We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
core::array
1 parent e3ad9e3 commit 0dd231aCopy full SHA for 0dd231a
1 file changed
coretests/tests/array.rs
@@ -717,3 +717,10 @@ fn array_map_drops_unmapped_elements_on_panic() {
717
assert_eq!(counter.load(Ordering::SeqCst), MAX);
718
}
719
720
+
721
+// This covers the `PartialEq::<[T]>::eq` impl for `[T; N]` when it returns false.
722
+#[test]
723
+fn array_eq() {
724
+ let not_true = [0u8] == [].as_slice();
725
+ assert!(!not_true);
726
+}
0 commit comments