]> git.lizzy.rs Git - rust.git/blobdiff - library/core/tests/array.rs
Auto merge of #98100 - bjorn3:use_object_for_bitcode_reading, r=wesleywiser
[rust.git] / library / core / tests / array.rs
index ee7ff012ec1c12e4ab64aeb3f76f3a34f72dc470..f268fe3ae7ba82790346fae4262b03e4fe9593f6 100644 (file)
@@ -388,7 +388,7 @@ enum SomeError {
     let array = core::array::try_from_fn(|i| Ok::<_, SomeError>(i));
     assert_eq!(array, Ok([0, 1, 2, 3, 4]));
 
-    let another_array = core::array::try_from_fn::<_, Result<(), _>, 2>(|_| Err(SomeError::Foo));
+    let another_array = core::array::try_from_fn::<Result<(), _>, 2, _>(|_| Err(SomeError::Foo));
     assert_eq!(another_array, Err(SomeError::Foo));
 }