]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/manual_unwrap_or.rs
Fix type checks for `manual_str_repeat`
[rust.git] / tests / ui / manual_unwrap_or.rs
index 95d585ad18a96c1f093e573d081fe6dd677fcb7e..989adde1f5bbb7518e8c41a22e24df5fa0cbe82b 100644 (file)
@@ -213,4 +213,11 @@ fn format_name(name: Option<&Rc<str>>) -> &str {
     }
 }
 
+fn implicit_deref_ref() {
+    let _: &str = match Some(&"bye") {
+        None => "hi",
+        Some(s) => s,
+    };
+}
+
 fn main() {}