]>
git.lizzy.rs Git - rust.git/blobdiff - tests/ui/block_in_if_condition.rs
unimplemented!()
}
}
+
+fn block_in_assert() {
+ let opt = Some(42);
+ assert!(opt
+ .as_ref()
+ .and_then(|val| {
+ let mut v = val * 2;
+ v -= 1;
+ Some(v * 3)
+ })
+ .is_some());
+}