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