allow for_loop_over_fallibles in a core test

This commit is contained in:
Maybe Waffle 2022-07-26 16:19:58 +04:00
parent 0250f0244b
commit 75ae20a42f

View File

@ -57,6 +57,7 @@ fn r(i: Rc<RefCell<isize>>) -> R {
} }
#[test] #[test]
#[cfg_attr(not(bootstrap), allow(for_loop_over_fallibles))]
fn test_option_dance() { fn test_option_dance() {
let x = Some(()); let x = Some(());
let mut y = Some(5); let mut y = Some(5);