mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-24 03:53:20 +00:00
88 lines
2.7 KiB
Text
88 lines
2.7 KiB
Text
error: printing a literal with an empty format string
|
|
--> $DIR/print_literal.rs:23:71
|
|
|
|
|
23 | println!("{} of {:b} people know binary, the other half doesn't", 1, 2);
|
|
| ^
|
|
|
|
|
= note: `-D print-literal` implied by `-D warnings`
|
|
|
|
error: printing a literal with an empty format string
|
|
--> $DIR/print_literal.rs:24:24
|
|
|
|
|
24 | print!("Hello {}", "world");
|
|
| ^^^^^^^
|
|
|
|
error: printing a literal with an empty format string
|
|
--> $DIR/print_literal.rs:25:36
|
|
|
|
|
25 | println!("Hello {} {}", world, "world");
|
|
| ^^^^^^^
|
|
|
|
error: printing a literal with an empty format string
|
|
--> $DIR/print_literal.rs:26:26
|
|
|
|
|
26 | println!("Hello {}", "world");
|
|
| ^^^^^^^
|
|
|
|
error: printing a literal with an empty format string
|
|
--> $DIR/print_literal.rs:27:30
|
|
|
|
|
27 | println!("10 / 4 is {}", 2.5);
|
|
| ^^^
|
|
|
|
error: printing a literal with an empty format string
|
|
--> $DIR/print_literal.rs:28:28
|
|
|
|
|
28 | println!("2 + 1 = {}", 3);
|
|
| ^
|
|
|
|
error: printing a literal with an empty format string
|
|
--> $DIR/print_literal.rs:33:25
|
|
|
|
|
33 | println!("{0} {1}", "hello", "world");
|
|
| ^^^^^^^
|
|
|
|
error: printing a literal with an empty format string
|
|
--> $DIR/print_literal.rs:33:34
|
|
|
|
|
33 | println!("{0} {1}", "hello", "world");
|
|
| ^^^^^^^
|
|
|
|
error: printing a literal with an empty format string
|
|
--> $DIR/print_literal.rs:34:25
|
|
|
|
|
34 | println!("{1} {0}", "hello", "world");
|
|
| ^^^^^^^
|
|
|
|
error: printing a literal with an empty format string
|
|
--> $DIR/print_literal.rs:34:34
|
|
|
|
|
34 | println!("{1} {0}", "hello", "world");
|
|
| ^^^^^^^
|
|
|
|
error: printing a literal with an empty format string
|
|
--> $DIR/print_literal.rs:37:33
|
|
|
|
|
37 | println!("{foo} {bar}", foo="hello", bar="world");
|
|
| ^^^^^^^
|
|
|
|
error: printing a literal with an empty format string
|
|
--> $DIR/print_literal.rs:37:46
|
|
|
|
|
37 | println!("{foo} {bar}", foo="hello", bar="world");
|
|
| ^^^^^^^
|
|
|
|
error: printing a literal with an empty format string
|
|
--> $DIR/print_literal.rs:38:33
|
|
|
|
|
38 | println!("{bar} {foo}", foo="hello", bar="world");
|
|
| ^^^^^^^
|
|
|
|
error: printing a literal with an empty format string
|
|
--> $DIR/print_literal.rs:38:46
|
|
|
|
|
38 | println!("{bar} {foo}", foo="hello", bar="world");
|
|
| ^^^^^^^
|
|
|
|
error: aborting due to 14 previous errors
|
|
|