We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 355c7e9 commit 91ad91eCopy full SHA for 91ad91e
library/core/tests/array.rs
@@ -376,6 +376,7 @@ fn array_try_from_fn() {
376
assert_eq!(another_array, Err(SomeError::Foo));
377
}
378
379
+#[cfg(not(panic = "abort"))]
380
#[test]
381
fn array_try_from_fn_drops_inserted_elements_on_err() {
382
static DROP_COUNTER: AtomicUsize = AtomicUsize::new(0);
@@ -399,6 +400,7 @@ fn array_try_from_fn_drops_inserted_elements_on_err() {
399
400
assert_eq!(DROP_COUNTER.load(Ordering::SeqCst), 2);
401
402
403
404
405
fn array_try_from_fn_drops_inserted_elements_on_panic() {
406
0 commit comments