We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
core::array
1 parent 6fab384 commit 6b49f2eCopy full SHA for 6b49f2e
library/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