-error: printing a literal with an empty format string
- --> $DIR/print_literal.rs:14:24
+error: literal with an empty format string
+ --> $DIR/print_literal.rs:22:71
|
-14 | print!("Hello {}", "world");
- | ^^^^^^^
+LL | println!("{} of {:b} people know binary, the other half doesn't", 1, 2);
+ | ^
|
- = note: `-D print-literal` implied by `-D warnings`
+ = note: `-D clippy::print-literal` implied by `-D warnings`
-error: printing a literal with an empty format string
- --> $DIR/print_literal.rs:15:36
+error: literal with an empty format string
+ --> $DIR/print_literal.rs:23:24
|
-15 | println!("Hello {} {}", world, "world");
+LL | print!("Hello {}", "world");
+ | ^^^^^^^
+
+error: literal with an empty format string
+ --> $DIR/print_literal.rs:24:36
+ |
+LL | println!("Hello {} {}", world, "world");
| ^^^^^^^
-error: printing a literal with an empty format string
- --> $DIR/print_literal.rs:16:26
+error: literal with an empty format string
+ --> $DIR/print_literal.rs:25:26
|
-16 | println!("Hello {}", "world");
+LL | println!("Hello {}", "world");
| ^^^^^^^
-error: printing a literal with an empty format string
- --> $DIR/print_literal.rs:17:30
+error: literal with an empty format string
+ --> $DIR/print_literal.rs:26:30
|
-17 | println!("10 / 4 is {}", 2.5);
+LL | println!("10 / 4 is {}", 2.5);
| ^^^
-error: printing a literal with an empty format string
- --> $DIR/print_literal.rs:18:28
+error: literal with an empty format string
+ --> $DIR/print_literal.rs:27:28
|
-18 | println!("2 + 1 = {}", 3);
+LL | println!("2 + 1 = {}", 3);
| ^
-error: printing a literal with an empty format string
- --> $DIR/print_literal.rs:19:31
- |
-19 | println!("2 + 1 = {:.4}", 3);
- | ^
-
-error: printing a literal with an empty format string
- --> $DIR/print_literal.rs:20:32
- |
-20 | println!("2 + 1 = {:5.4}", 3);
- | ^
-
-error: printing a literal with an empty format string
- --> $DIR/print_literal.rs:21:33
- |
-21 | println!("Debug test {:?}", "hello, world");
- | ^^^^^^^^^^^^^^
-
-error: printing a literal with an empty format string
- --> $DIR/print_literal.rs:26:25
+error: literal with an empty format string
+ --> $DIR/print_literal.rs:32:25
|
-26 | println!("{0} {1}", "hello", "world");
+LL | println!("{0} {1}", "hello", "world");
| ^^^^^^^
-error: printing a literal with an empty format string
- --> $DIR/print_literal.rs:26:34
+error: literal with an empty format string
+ --> $DIR/print_literal.rs:32:34
|
-26 | println!("{0} {1}", "hello", "world");
+LL | println!("{0} {1}", "hello", "world");
| ^^^^^^^
-error: printing a literal with an empty format string
- --> $DIR/print_literal.rs:27:25
+error: literal with an empty format string
+ --> $DIR/print_literal.rs:33:25
|
-27 | println!("{1} {0}", "hello", "world");
+LL | println!("{1} {0}", "hello", "world");
| ^^^^^^^
-error: printing a literal with an empty format string
- --> $DIR/print_literal.rs:27:34
+error: literal with an empty format string
+ --> $DIR/print_literal.rs:33:34
|
-27 | println!("{1} {0}", "hello", "world");
+LL | println!("{1} {0}", "hello", "world");
| ^^^^^^^
-error: printing a literal with an empty format string
- --> $DIR/print_literal.rs:30:33
+error: literal with an empty format string
+ --> $DIR/print_literal.rs:36:35
|
-30 | println!("{foo} {bar}", foo="hello", bar="world");
- | ^^^^^^^
+LL | println!("{foo} {bar}", foo = "hello", bar = "world");
+ | ^^^^^^^
-error: printing a literal with an empty format string
- --> $DIR/print_literal.rs:30:46
+error: literal with an empty format string
+ --> $DIR/print_literal.rs:36:50
|
-30 | println!("{foo} {bar}", foo="hello", bar="world");
- | ^^^^^^^
+LL | println!("{foo} {bar}", foo = "hello", bar = "world");
+ | ^^^^^^^
-error: printing a literal with an empty format string
- --> $DIR/print_literal.rs:31:33
+error: literal with an empty format string
+ --> $DIR/print_literal.rs:37:35
|
-31 | println!("{bar} {foo}", foo="hello", bar="world");
- | ^^^^^^^
+LL | println!("{bar} {foo}", foo = "hello", bar = "world");
+ | ^^^^^^^
-error: printing a literal with an empty format string
- --> $DIR/print_literal.rs:31:46
+error: literal with an empty format string
+ --> $DIR/print_literal.rs:37:50
|
-31 | println!("{bar} {foo}", foo="hello", bar="world");
- | ^^^^^^^
+LL | println!("{bar} {foo}", foo = "hello", bar = "world");
+ | ^^^^^^^
-error: aborting due to 16 previous errors
+error: aborting due to 14 previous errors