@@ -23,22 +23,34 @@ error: identical conversion
23
23
| ^^^^^^^^^^^ help: consider removing `.into()`: `0i32`
24
24
25
25
error: identical conversion
26
- --> $DIR/identity_conversion.rs:37 :21
26
+ --> $DIR/identity_conversion.rs:38 :21
27
27
|
28
- 37 | let _: String = "foo".to_string().into();
28
+ 38 | let _: String = "foo".to_string().into();
29
29
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `"foo".to_string()`
30
30
31
31
error: identical conversion
32
- --> $DIR/identity_conversion.rs:38 :21
32
+ --> $DIR/identity_conversion.rs:39 :21
33
33
|
34
- 38 | let _: String = From::from("foo".to_string());
34
+ 39 | let _: String = From::from("foo".to_string());
35
35
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `From::from()`: `"foo".to_string()`
36
36
37
37
error: identical conversion
38
- --> $DIR/identity_conversion.rs:39 :13
38
+ --> $DIR/identity_conversion.rs:40 :13
39
39
|
40
- 39 | let _ = String::from("foo".to_string());
40
+ 40 | let _ = String::from("foo".to_string());
41
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `"foo".to_string()`
42
42
43
- error: aborting due to 6 previous errors
43
+ error: identical conversion
44
+ --> $DIR/identity_conversion.rs:41:13
45
+ |
46
+ 41 | let _ = "".lines().into_iter();
47
+ | ^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into_iter()`: `"".lines()`
48
+
49
+ error: identical conversion
50
+ --> $DIR/identity_conversion.rs:42:13
51
+ |
52
+ 42 | let _ = vec![1, 2, 3].into_iter().into_iter();
53
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into_iter()`: `vec![1, 2, 3].into_iter()`
54
+
55
+ error: aborting due to 8 previous errors
44
56
0 commit comments