]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/format.stderr
New upstream version 1.27.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / format.stderr
CommitLineData
ea8adc8c 1error: useless use of `format!`
83c7162d
XL
2 --> $DIR/format.rs:12:5
3 |
412 | format!("foo");
5 | ^^^^^^^^^^^^^^^ help: consider using .to_string(): `"foo".to_string()`
6 |
7 = note: `-D useless-format` implied by `-D warnings`
8
9error: useless use of `format!`
10 --> $DIR/format.rs:14:5
11 |
1214 | format!("{}", "foo");
13 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using .to_string(): `"foo".to_string()`
14 |
15 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
16
17error: useless use of `format!`
18 --> $DIR/format.rs:17:5
19 |
2017 | format!("{:+}", "foo"); // warn when the format makes no difference
21 | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using .to_string(): `"foo".to_string()`
22 |
23 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
24
25error: useless use of `format!`
26 --> $DIR/format.rs:18:5
27 |
2818 | format!("{:<}", "foo"); // warn when the format makes no difference
29 | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using .to_string(): `"foo".to_string()`
30 |
31 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
32
33error: useless use of `format!`
34 --> $DIR/format.rs:23:5
35 |
3623 | format!("{}", arg);
37 | ^^^^^^^^^^^^^^^^^^^ help: consider using .to_string(): `arg.to_string()`
38 |
39 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
40
41error: useless use of `format!`
42 --> $DIR/format.rs:26:5
43 |
4426 | format!("{:+}", arg); // warn when the format makes no difference
45 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using .to_string(): `arg.to_string()`
46 |
47 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
48
49error: useless use of `format!`
50 --> $DIR/format.rs:27:5
51 |
5227 | format!("{:<}", arg); // warn when the format makes no difference
53 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using .to_string(): `arg.to_string()`
54 |
55 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
56
57error: aborting due to 7 previous errors
2c00a5a8 58