1 2--- 3 tests/slab.rs | 2 ++ 4 1 file changed, 2 insertions(+) 5 6diff --git b/tests/slab.rs a/tests/slab.rs 7index 4799c1dd..e18b40eb 100644 8--- b/tests/slab.rs 9+++ a/tests/slab.rs 10@@ -614,6 +614,8 @@ fn compact_doesnt_move_if_closure_errors() { 11 } 12 13 #[test] 14+// Android aborts on panic and this test relies on stack unwinding. 15+#[cfg(not(target_os = "android"))] 16 fn compact_handles_closure_panic() { 17 let mut slab = Slab::new(); 18 for i in 0..10 { 19