1 error: literal with an empty format string
2 --> $DIR/print_literal.rs:25:24
4 LL | print!("Hello {}", "world");
7 = note: `-D clippy::print-literal` implied by `-D warnings`
10 LL - print!("Hello {}", "world");
11 LL + print!("Hello world");
14 error: literal with an empty format string
15 --> $DIR/print_literal.rs:26:36
17 LL | println!("Hello {} {}", world, "world");
22 LL - println!("Hello {} {}", world, "world");
23 LL + println!("Hello {} world", world);
26 error: literal with an empty format string
27 --> $DIR/print_literal.rs:27:26
29 LL | println!("Hello {}", "world");
34 LL - println!("Hello {}", "world");
35 LL + println!("Hello world");
38 error: literal with an empty format string
39 --> $DIR/print_literal.rs:32:25
41 LL | println!("{0} {1}", "hello", "world");
46 LL - println!("{0} {1}", "hello", "world");
47 LL + println!("hello {1}", "world");
50 error: literal with an empty format string
51 --> $DIR/print_literal.rs:32:34
53 LL | println!("{0} {1}", "hello", "world");
58 LL - println!("{0} {1}", "hello", "world");
59 LL + println!("{0} world", "hello");
62 error: literal with an empty format string
63 --> $DIR/print_literal.rs:33:25
65 LL | println!("{1} {0}", "hello", "world");
70 LL - println!("{1} {0}", "hello", "world");
71 LL + println!("{1} hello", "world");
74 error: literal with an empty format string
75 --> $DIR/print_literal.rs:33:34
77 LL | println!("{1} {0}", "hello", "world");
82 LL - println!("{1} {0}", "hello", "world");
83 LL + println!("world {0}", "hello");
86 error: literal with an empty format string
87 --> $DIR/print_literal.rs:36:29
89 LL | println!("{foo} {bar}", foo = "hello", bar = "world");
94 LL - println!("{foo} {bar}", foo = "hello", bar = "world");
95 LL + println!("hello {bar}", bar = "world");
98 error: literal with an empty format string
99 --> $DIR/print_literal.rs:36:44
101 LL | println!("{foo} {bar}", foo = "hello", bar = "world");
106 LL - println!("{foo} {bar}", foo = "hello", bar = "world");
107 LL + println!("{foo} world", foo = "hello");
110 error: literal with an empty format string
111 --> $DIR/print_literal.rs:37:29
113 LL | println!("{bar} {foo}", foo = "hello", bar = "world");
118 LL - println!("{bar} {foo}", foo = "hello", bar = "world");
119 LL + println!("{bar} hello", bar = "world");
122 error: literal with an empty format string
123 --> $DIR/print_literal.rs:37:44
125 LL | println!("{bar} {foo}", foo = "hello", bar = "world");
130 LL - println!("{bar} {foo}", foo = "hello", bar = "world");
131 LL + println!("world {foo}", foo = "hello");
134 error: aborting due to 11 previous errors