about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-07-26 16:19:58 +0400
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-10-09 13:07:20 +0000
commit75ae20a42f6c429342d53b41a2592de07bee6f91 (patch)
treeca4277e8c4fe29338bd3a525da1b58eb893b3586
parent0250f0244b320b1cecabc05c108178171c733f6c (diff)
downloadrust-75ae20a42f6c429342d53b41a2592de07bee6f91.tar.gz
rust-75ae20a42f6c429342d53b41a2592de07bee6f91.zip
allow `for_loop_over_fallibles` in a `core` test
-rw-r--r--library/core/tests/option.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/tests/option.rs b/library/core/tests/option.rs
index 9f5e537dcef..84eb4fc0aa3 100644
--- a/library/core/tests/option.rs
+++ b/library/core/tests/option.rs
@@ -57,6 +57,7 @@ fn test_get_resource() {
 }
 
 #[test]
+#[cfg_attr(not(bootstrap), allow(for_loop_over_fallibles))]
 fn test_option_dance() {
     let x = Some(());
     let mut y = Some(5);