]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2005-default-binding-mode/suggestion.rs
Auto merge of #49304 - sinkuu:impl_trait_rustdoc, r=QuietMisdreavus
[rust.git] / src / test / ui / rfc-2005-default-binding-mode / suggestion.rs
index 52ff817dff48833443af296f13793cdbda052a50..b9b974ff3c521aa6b36d48a33d96f98a1ea30585 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 fn main() {
-    if let Some(y) = &Some(22) {
+    if let Some(y) = &Some(22) { //~ ERROR non-reference pattern
       println!("{}", y);
     }
 }