1 error: identical conversion
2 --> $DIR/identity_conversion.rs:6:13
4 6 | let _ = T::from(val);
5 | ^^^^^^^^^^^^ help: consider removing `T::from()`: `val`
7 note: lint level defined here
8 --> $DIR/identity_conversion.rs:3:9
10 3 | #![deny(clippy::identity_conversion)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error: identical conversion
14 --> $DIR/identity_conversion.rs:7:5
17 | ^^^^^^^^^^ help: consider removing `.into()`: `val`
19 error: identical conversion
20 --> $DIR/identity_conversion.rs:19:22
22 19 | let _: i32 = 0i32.into();
23 | ^^^^^^^^^^^ help: consider removing `.into()`: `0i32`
25 error: identical conversion
26 --> $DIR/identity_conversion.rs:40:21
28 40 | let _: String = "foo".to_string().into();
29 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `"foo".to_string()`
31 error: identical conversion
32 --> $DIR/identity_conversion.rs:41:21
34 41 | let _: String = From::from("foo".to_string());
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `From::from()`: `"foo".to_string()`
37 error: identical conversion
38 --> $DIR/identity_conversion.rs:42:13
40 42 | let _ = String::from("foo".to_string());
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `"foo".to_string()`
43 error: identical conversion
44 --> $DIR/identity_conversion.rs:43:13
46 43 | let _ = String::from(format!("A: {:04}", 123));
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `format!("A: {:04}", 123)`
49 error: identical conversion
50 --> $DIR/identity_conversion.rs:44:13
52 44 | let _ = "".lines().into_iter();
53 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into_iter()`: `"".lines()`
55 error: identical conversion
56 --> $DIR/identity_conversion.rs:45:13
58 45 | let _ = vec![1, 2, 3].into_iter().into_iter();
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into_iter()`: `vec![1, 2, 3].into_iter()`
61 error: aborting due to 9 previous errors