]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/identity_conversion.stderr
New upstream version 1.23.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / identity_conversion.stderr
1 error: identical conversion
2 --> $DIR/identity_conversion.rs:4:13
3 |
4 4 | let _ = T::from(val);
5 | ^^^^^^^^^^^^ help: consider removing `T::from()`: `val`
6 |
7 note: lint level defined here
8 --> $DIR/identity_conversion.rs:1:9
9 |
10 1 | #![deny(identity_conversion)]
11 | ^^^^^^^^^^^^^^^^^^^
12
13 error: identical conversion
14 --> $DIR/identity_conversion.rs:5:5
15 |
16 5 | val.into()
17 | ^^^^^^^^^^ help: consider removing `.into()`: `val`
18
19 error: identical conversion
20 --> $DIR/identity_conversion.rs:17:22
21 |
22 17 | let _: i32 = 0i32.into();
23 | ^^^^^^^^^^^ help: consider removing `.into()`: `0i32`
24
25 error: identical conversion
26 --> $DIR/identity_conversion.rs:37:21
27 |
28 37 | let _: String = "foo".to_string().into();
29 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `"foo".to_string()`
30
31 error: identical conversion
32 --> $DIR/identity_conversion.rs:38:21
33 |
34 38 | let _: String = From::from("foo".to_string());
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `From::from()`: `"foo".to_string()`
36
37 error: identical conversion
38 --> $DIR/identity_conversion.rs:39:13
39 |
40 39 | let _ = String::from("foo".to_string());
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `"foo".to_string()`
42