]> git.lizzy.rs Git - rust.git/blob - tests/ui/print_literal.stderr
Remove numeric literals from print_literal and write_literal tests
[rust.git] / tests / ui / print_literal.stderr
1 error: literal with an empty format string
2   --> $DIR/print_literal.rs:22:24
3    |
4 LL |     print!("Hello {}", "world");
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:36
11    |
12 LL |     println!("Hello {} {}", world, "world");
13    |                                    ^^^^^^^
14
15 error: literal with an empty format string
16   --> $DIR/print_literal.rs:24:26
17    |
18 LL |     println!("Hello {}", "world");
19    |                          ^^^^^^^
20
21 error: literal with an empty format string
22   --> $DIR/print_literal.rs:29:25
23    |
24 LL |     println!("{0} {1}", "hello", "world");
25    |                         ^^^^^^^
26
27 error: literal with an empty format string
28   --> $DIR/print_literal.rs:29:34
29    |
30 LL |     println!("{0} {1}", "hello", "world");
31    |                                  ^^^^^^^
32
33 error: literal with an empty format string
34   --> $DIR/print_literal.rs:30:25
35    |
36 LL |     println!("{1} {0}", "hello", "world");
37    |                         ^^^^^^^
38
39 error: literal with an empty format string
40   --> $DIR/print_literal.rs:30:34
41    |
42 LL |     println!("{1} {0}", "hello", "world");
43    |                                  ^^^^^^^
44
45 error: literal with an empty format string
46   --> $DIR/print_literal.rs:33:35
47    |
48 LL |     println!("{foo} {bar}", foo = "hello", bar = "world");
49    |                                   ^^^^^^^
50
51 error: literal with an empty format string
52   --> $DIR/print_literal.rs:33:50
53    |
54 LL |     println!("{foo} {bar}", foo = "hello", bar = "world");
55    |                                                  ^^^^^^^
56
57 error: literal with an empty format string
58   --> $DIR/print_literal.rs:34:35
59    |
60 LL |     println!("{bar} {foo}", foo = "hello", bar = "world");
61    |                                   ^^^^^^^
62
63 error: literal with an empty format string
64   --> $DIR/print_literal.rs:34:50
65    |
66 LL |     println!("{bar} {foo}", foo = "hello", bar = "world");
67    |                                                  ^^^^^^^
68
69 error: aborting due to 11 previous errors
70