]> git.lizzy.rs Git - rust.git/blob - tests/ui/unused_format_specs_unfixable.stderr
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / unused_format_specs_unfixable.stderr
1 error: format specifiers have no effect on `format_args!()`
2   --> $DIR/unused_format_specs_unfixable.rs:12:15
3    |
4 LL |     println!("{:5}.", format_args!(""));
5    |               ^^^^
6    |
7    = note: `-D clippy::unused-format-specs` implied by `-D warnings`
8 help: for the width to apply consider using `format!()`
9    |
10 LL |     println!("{:5}.", format!(""));
11    |                       ~~~~~~
12 help: if the current behavior is intentional, remove the format specifiers
13    |
14 LL -     println!("{:5}.", format_args!(""));
15 LL +     println!("{}.", format_args!(""));
16    |
17
18 error: format specifiers have no effect on `format_args!()`
19   --> $DIR/unused_format_specs_unfixable.rs:14:15
20    |
21 LL |     println!("{:.3}", format_args!("abcde"));
22    |               ^^^^^
23    |
24 help: for the precision to apply consider using `format!()`
25    |
26 LL |     println!("{:.3}", format!("abcde"));
27    |                       ~~~~~~
28 help: if the current behavior is intentional, remove the format specifiers
29    |
30 LL -     println!("{:.3}", format_args!("abcde"));
31 LL +     println!("{}", format_args!("abcde"));
32    |
33
34 error: format specifiers have no effect on `format_args!()`
35   --> $DIR/unused_format_specs_unfixable.rs:16:15
36    |
37 LL |     println!("{:5}.", format_args_from_macro!());
38    |               ^^^^
39    |
40 help: for the width to apply consider using `format!()`
41   --> $DIR/unused_format_specs_unfixable.rs:16:17
42    |
43 LL |     println!("{:5}.", format_args_from_macro!());
44    |                 ^
45 help: if the current behavior is intentional, remove the format specifiers
46    |
47 LL -     println!("{:5}.", format_args_from_macro!());
48 LL +     println!("{}.", format_args_from_macro!());
49    |
50
51 error: format specifiers have no effect on `format_args!()`
52   --> $DIR/unused_format_specs_unfixable.rs:19:15
53    |
54 LL |     println!("{args:5}");
55    |               ^^^^^^^^
56    |
57 help: for the width to apply consider using `format!()`
58   --> $DIR/unused_format_specs_unfixable.rs:19:21
59    |
60 LL |     println!("{args:5}");
61    |                     ^
62 help: if the current behavior is intentional, remove the format specifiers
63    |
64 LL -     println!("{args:5}");
65 LL +     println!("{args}");
66    |
67
68 error: aborting due to 4 previous errors
69