]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/format.fixed
iterate List by value
[rust.git] / tests / ui / format.fixed
index 401a1c533fefc5064a923852b4d2d642335dd013..306514769990d82edde8ff07ebe1780c625cb061 100644 (file)
@@ -1,6 +1,6 @@
 // run-rustfix
 
-#![allow(clippy::print_literal)]
+#![allow(clippy::print_literal, clippy::redundant_clone)]
 #![warn(clippy::useless_format)]
 
 struct Foo(pub String);
@@ -60,4 +60,8 @@ fn main() {
     42.to_string();
     let x = std::path::PathBuf::from("/bar/foo/qux");
     x.display().to_string();
+
+    // False positive
+    let a = "foo".to_string();
+    let _ = Some(a + "bar");
 }