2018-04-01 13:28:07 -05:00
|
|
|
error: printing a literal with an empty format string
|
2018-04-02 15:31:41 -05:00
|
|
|
--> $DIR/print_literal.rs:14:24
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
14 | print!("Hello {}", "world");
|
|
|
|
| ^^^^^^^
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
|
|
|
= note: `-D print-literal` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: printing a literal with an empty format string
|
2018-04-02 15:31:41 -05:00
|
|
|
--> $DIR/print_literal.rs:15:36
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
15 | println!("Hello {} {}", world, "world");
|
2018-04-01 13:28:07 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: printing a literal with an empty format string
|
2018-04-02 15:31:41 -05:00
|
|
|
--> $DIR/print_literal.rs:16:26
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
16 | println!("Hello {}", "world");
|
2018-04-01 13:28:07 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: printing a literal with an empty format string
|
2018-04-02 15:31:41 -05:00
|
|
|
--> $DIR/print_literal.rs:17:30
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
17 | println!("10 / 4 is {}", 2.5);
|
2018-04-01 13:28:07 -05:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: printing a literal with an empty format string
|
2018-04-02 15:31:41 -05:00
|
|
|
--> $DIR/print_literal.rs:18:28
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
18 | println!("2 + 1 = {}", 3);
|
2018-04-01 13:28:07 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: printing a literal with an empty format string
|
2018-04-02 15:31:41 -05:00
|
|
|
--> $DIR/print_literal.rs:19:31
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
19 | println!("2 + 1 = {:.4}", 3);
|
2018-04-01 13:28:07 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: printing a literal with an empty format string
|
2018-04-02 15:31:41 -05:00
|
|
|
--> $DIR/print_literal.rs:20:32
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
20 | println!("2 + 1 = {:5.4}", 3);
|
2018-04-01 13:28:07 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: printing a literal with an empty format string
|
2018-04-02 15:31:41 -05:00
|
|
|
--> $DIR/print_literal.rs:21:33
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
21 | println!("Debug test {:?}", "hello, world");
|
2018-04-01 13:28:07 -05:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: printing a literal with an empty format string
|
2018-04-02 15:31:41 -05:00
|
|
|
--> $DIR/print_literal.rs:26:25
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
26 | println!("{0} {1}", "hello", "world");
|
2018-04-01 13:28:07 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: printing a literal with an empty format string
|
2018-04-02 15:31:41 -05:00
|
|
|
--> $DIR/print_literal.rs:26:34
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
26 | println!("{0} {1}", "hello", "world");
|
2018-04-01 13:28:07 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: printing a literal with an empty format string
|
2018-04-02 15:31:41 -05:00
|
|
|
--> $DIR/print_literal.rs:27:25
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
27 | println!("{1} {0}", "hello", "world");
|
2018-04-01 13:28:07 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: printing a literal with an empty format string
|
2018-04-02 15:31:41 -05:00
|
|
|
--> $DIR/print_literal.rs:27:34
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
27 | println!("{1} {0}", "hello", "world");
|
2018-04-01 13:28:07 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: printing a literal with an empty format string
|
2018-04-02 15:31:41 -05:00
|
|
|
--> $DIR/print_literal.rs:30:33
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
30 | println!("{foo} {bar}", foo="hello", bar="world");
|
2018-04-01 13:28:07 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: printing a literal with an empty format string
|
2018-04-02 15:31:41 -05:00
|
|
|
--> $DIR/print_literal.rs:30:46
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
30 | println!("{foo} {bar}", foo="hello", bar="world");
|
2018-04-01 13:28:07 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: printing a literal with an empty format string
|
2018-04-02 15:31:41 -05:00
|
|
|
--> $DIR/print_literal.rs:31:33
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
31 | println!("{bar} {foo}", foo="hello", bar="world");
|
2018-04-01 13:28:07 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: printing a literal with an empty format string
|
2018-04-02 15:31:41 -05:00
|
|
|
--> $DIR/print_literal.rs:31:46
|
2018-04-01 13:28:07 -05:00
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
31 | println!("{bar} {foo}", foo="hello", bar="world");
|
2018-04-01 13:28:07 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-04-02 15:31:41 -05:00
|
|
|
error: aborting due to 16 previous errors
|
2018-04-01 13:28:07 -05:00
|
|
|
|