]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/identity_conversion.rs
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / identity_conversion.rs
index 9384c9eb206ef17eaf73b0f1e271aed3dd12430e..6ba191b0b843acb6baabaa458c15b1ac3bd7f04a 100644 (file)
@@ -7,9 +7,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-
-
-
 #![deny(clippy::identity_conversion)]
 
 fn test_generic<T: Copy>(val: T) -> T {
@@ -53,4 +50,5 @@ fn main() {
     let _ = String::from(format!("A: {:04}", 123));
     let _ = "".lines().into_iter();
     let _ = vec![1, 2, 3].into_iter().into_iter();
+    let _: String = format!("Hello {}", "world").into();
 }