]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/print_literal.stderr
Add 'src/tools/clippy/' from commit 'd2708873ef711ec8ab45df1e984ecf24a96cd369'
[rust.git] / src / tools / clippy / tests / ui / print_literal.stderr
1 error: literal with an empty format string
2   --> $DIR/print_literal.rs:22:71
3    |
4 LL |     println!("{} of {:b} people know binary, the other half doesn't", 1, 2);
5    |                                                                       ^
6    |
7    = note: `-D clippy::print-literal` implied by `-D warnings`
8
9 error: literal with an empty format string
10   --> $DIR/print_literal.rs:23:24
11    |
12 LL |     print!("Hello {}", "world");
13    |                        ^^^^^^^
14
15 error: literal with an empty format string
16   --> $DIR/print_literal.rs:24:36
17    |
18 LL |     println!("Hello {} {}", world, "world");
19    |                                    ^^^^^^^
20
21 error: literal with an empty format string
22   --> $DIR/print_literal.rs:25:26
23    |
24 LL |     println!("Hello {}", "world");
25    |                          ^^^^^^^
26
27 error: literal with an empty format string
28   --> $DIR/print_literal.rs:26:30
29    |
30 LL |     println!("10 / 4 is {}", 2.5);
31    |                              ^^^
32
33 error: literal with an empty format string
34   --> $DIR/print_literal.rs:27:28
35    |
36 LL |     println!("2 + 1 = {}", 3);
37    |                            ^
38
39 error: literal with an empty format string
40   --> $DIR/print_literal.rs:32:25
41    |
42 LL |     println!("{0} {1}", "hello", "world");
43    |                         ^^^^^^^
44
45 error: literal with an empty format string
46   --> $DIR/print_literal.rs:32:34
47    |
48 LL |     println!("{0} {1}", "hello", "world");
49    |                                  ^^^^^^^
50
51 error: literal with an empty format string
52   --> $DIR/print_literal.rs:33:25
53    |
54 LL |     println!("{1} {0}", "hello", "world");
55    |                         ^^^^^^^
56
57 error: literal with an empty format string
58   --> $DIR/print_literal.rs:33:34
59    |
60 LL |     println!("{1} {0}", "hello", "world");
61    |                                  ^^^^^^^
62
63 error: literal with an empty format string
64   --> $DIR/print_literal.rs:36:35
65    |
66 LL |     println!("{foo} {bar}", foo = "hello", bar = "world");
67    |                                   ^^^^^^^
68
69 error: literal with an empty format string
70   --> $DIR/print_literal.rs:36:50
71    |
72 LL |     println!("{foo} {bar}", foo = "hello", bar = "world");
73    |                                                  ^^^^^^^
74
75 error: literal with an empty format string
76   --> $DIR/print_literal.rs:37:35
77    |
78 LL |     println!("{bar} {foo}", foo = "hello", bar = "world");
79    |                                   ^^^^^^^
80
81 error: literal with an empty format string
82   --> $DIR/print_literal.rs:37:50
83    |
84 LL |     println!("{bar} {foo}", foo = "hello", bar = "world");
85    |                                                  ^^^^^^^
86
87 error: aborting due to 14 previous errors
88