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.
1 parent 8b51854 commit b4734b7Copy full SHA for b4734b7
1 file changed
library/core/tests/iter/adapters/zip.rs
@@ -1,7 +1,5 @@
1
use super::*;
2
use core::iter::*;
3
-use std::panic::catch_unwind;
4
-use std::panic::AssertUnwindSafe;
5
6
#[test]
7
fn test_zip_nth() {
@@ -235,7 +233,11 @@ fn test_zip_trusted_random_access_composition() {
235
233
}
236
234
237
+#[cfg(panic = "unwind")]
238
fn test_zip_trusted_random_access_next_back_drop() {
+ use std::panic::catch_unwind;
239
+ use std::panic::AssertUnwindSafe;
240
+
241
let mut counter = 0;
242
243
let it = [42].iter().map(|e| {
0 commit comments