]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/result_map_unit_fn_fixable.rs
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / result_map_unit_fn_fixable.rs
index 679eb2326268c7a62fba3a04b228d9bbf4a827ee..44f50d21109cddefefd4cd41f12dab76dd965f74 100644 (file)
@@ -1,7 +1,7 @@
 // run-rustfix
-
 #![warn(clippy::result_map_unit_fn)]
 #![allow(unused)]
+#![allow(clippy::uninlined_format_args)]
 
 fn do_nothing<T>(_: T) {}
 
@@ -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() {}