]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/single_match.stderr
iterate List by value
[rust.git] / tests / ui / single_match.stderr
index 80ddeabdb2fd11c54a0feaa265e27d12b449e619..f69554d75f9bf7aa1f08f4e0bfb3fc3d5d4bb89a 100644 (file)
@@ -13,8 +13,8 @@ LL | |     };
 help: try this
    |
 LL |     if let Some(y) = x {
-LL |     println!("{:?}", y);
-LL | };
+LL |         println!("{:?}", y);
+LL |     };
    |
 
 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`