rust/tests/ui/print_literal.stderr

89 lines
2.6 KiB
Plaintext
Raw Normal View History

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