]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/manual_map_option.fixed
Don't allow adjustments for `manual_map`
[rust.git] / tests / ui / manual_map_option.fixed
index ee0158457778673751f097c518d285560900de7a..40d01df6379a696496028454027d8acaba84f1c8 100644 (file)
@@ -146,4 +146,11 @@ fn main() {
             None => None,
         };
     }
+
+    // #7077
+    let s = &String::new();
+    let _: Option<&str> = match Some(s) {
+        Some(s) => Some(s),
+        None => None,
+    };
 }