]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/result_map_unit_fn_fixable.rs
New upstream version 1.62.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / result_map_unit_fn_fixable.rs
index 679eb2326268c7a62fba3a04b228d9bbf4a827ee..8b0fca9ece1a375d45e532a5eda015265db5a383 100644 (file)
@@ -75,6 +75,8 @@ fn result_map_unit_fn() {
 
 
     x.field.map(|ref value| { do_nothing(value + captured) });
+
+    x.field.map(|value| println!("{:?}", value));
 }
 
 fn main() {}