diff options
| author | Caio <c410.f3r@gmail.com> | 2021-10-08 06:40:24 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2021-10-08 06:40:24 -0300 |
| commit | 85c4a52807d6137505b0d1419cc800c210d79159 (patch) | |
| tree | 51c165faa1b7f9573ec484280d703615585853c2 | |
| parent | 91ad91efb68507d388aa7332dd458372893c2929 (diff) | |
| download | rust-85c4a52807d6137505b0d1419cc800c210d79159.tar.gz rust-85c4a52807d6137505b0d1419cc800c210d79159.zip | |
Also cfg flag auxiliar function
| -rw-r--r-- | library/core/tests/array.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/tests/array.rs b/library/core/tests/array.rs index 183f055baf1..b3af1328c90 100644 --- a/library/core/tests/array.rs +++ b/library/core/tests/array.rs @@ -424,6 +424,7 @@ fn array_try_from_fn_drops_inserted_elements_on_panic() { assert_eq!(DROP_COUNTER.load(Ordering::SeqCst), 2); } +#[cfg(not(panic = "abort"))] // https://stackoverflow.com/a/59211505 fn catch_unwind_silent<F, R>(f: F) -> std::thread::Result<R> where |
