]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/manual_map_option_2.fixed
Addition `manual_map` test for `unsafe` blocks
[rust.git] / tests / ui / manual_map_option_2.fixed
index a004ea79d3b6da4cfde0643bf3f6d73e8acfa88d..ebf3f8cabd4706b3da545355708d039f0f693a4f 100644 (file)
@@ -48,6 +48,7 @@ fn main() {
             if let Some(ref s) = s { (x.clone(), s) } else { panic!() }
         });
 
+    // Issue #7820
     unsafe fn f(x: u32) -> u32 {
         x
     }
@@ -55,4 +56,5 @@ fn main() {
         let _ = Some(0).map(|x| f(x));
     }
     let _ = Some(0).map(|x| unsafe { f(x) });
+    let _ = Some(0).map(|x| unsafe { f(x) });
 }