2023-06-08 06:55:47 -05:00
|
|
|
error: unnecessary raw string literal
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:11:24
|
2023-06-08 06:55:47 -05:00
|
|
|
|
|
|
|
|
LL | writeln!(v, r"{}", r"{hello}");
|
|
|
|
| ^^^^^^^^^^ help: try: `"{hello}"`
|
|
|
|
|
|
2023-06-15 14:15:10 -05:00
|
|
|
= note: `-D clippy::needless-raw-strings` implied by `-D warnings`
|
2023-06-08 06:55:47 -05:00
|
|
|
|
2021-03-25 13:29:11 -05:00
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:10:23
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2022-01-27 08:12:45 -06:00
|
|
|
LL | writeln!(v, "{}", "{hello}");
|
|
|
|
| ^^^^^^^^^
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::write-literal` implied by `-D warnings`
|
2023-07-01 06:08:01 -05:00
|
|
|
help: try
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2022-01-27 08:12:45 -06:00
|
|
|
LL - writeln!(v, "{}", "{hello}");
|
|
|
|
LL + writeln!(v, "{{hello}}");
|
2022-06-15 06:15:54 -05:00
|
|
|
|
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:11:24
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2022-01-27 08:12:45 -06:00
|
|
|
LL | writeln!(v, r"{}", r"{hello}");
|
|
|
|
| ^^^^^^^^^^
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2023-07-01 06:08:01 -05:00
|
|
|
help: try
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2022-01-27 08:12:45 -06:00
|
|
|
LL - writeln!(v, r"{}", r"{hello}");
|
|
|
|
LL + writeln!(v, r"{{hello}}");
|
2022-06-15 06:15:54 -05:00
|
|
|
|
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:12:23
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2022-01-27 08:12:45 -06:00
|
|
|
LL | writeln!(v, "{}", '/'');
|
|
|
|
| ^^^^
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2023-07-01 06:08:01 -05:00
|
|
|
help: try
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2022-01-27 08:12:45 -06:00
|
|
|
LL - writeln!(v, "{}", '/'');
|
|
|
|
LL + writeln!(v, "'");
|
2022-06-15 06:15:54 -05:00
|
|
|
|
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:13:23
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2022-01-27 08:12:45 -06:00
|
|
|
LL | writeln!(v, "{}", '"');
|
|
|
|
| ^^^
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2023-07-01 06:08:01 -05:00
|
|
|
help: try
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2022-01-27 08:12:45 -06:00
|
|
|
LL - writeln!(v, "{}", '"');
|
|
|
|
LL + writeln!(v, "/"");
|
2022-06-15 06:15:54 -05:00
|
|
|
|
|
2021-03-25 13:29:11 -05:00
|
|
|
|
2022-08-30 07:20:49 -05:00
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:14:24
|
2022-08-30 07:20:49 -05:00
|
|
|
|
|
|
|
|
LL | writeln!(v, r"{}", '"');
|
|
|
|
| ^^^
|
|
|
|
|
2021-03-25 13:29:11 -05:00
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:15:24
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2022-01-27 08:12:45 -06:00
|
|
|
LL | writeln!(v, r"{}", '/'');
|
|
|
|
| ^^^^
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2023-07-01 06:08:01 -05:00
|
|
|
help: try
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2022-01-27 08:12:45 -06:00
|
|
|
LL - writeln!(v, r"{}", '/'');
|
|
|
|
LL + writeln!(v, r"'");
|
2022-06-15 06:15:54 -05:00
|
|
|
|
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:19:9
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
|
|
|
LL | / "hello /
|
|
|
|
LL | | world!"
|
|
|
|
| |_______________^
|
|
|
|
|
|
2023-07-01 06:08:01 -05:00
|
|
|
help: try
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2021-08-11 09:21:33 -05:00
|
|
|
LL ~ "some hello /
|
|
|
|
LL ~ world!"
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:26:9
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
|
|
|
LL | "1", "2", "3",
|
|
|
|
| ^^^
|
|
|
|
|
|
2023-07-01 06:08:01 -05:00
|
|
|
help: try
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2021-08-11 09:21:33 -05:00
|
|
|
LL ~ "some 1/
|
2023-04-20 10:19:36 -05:00
|
|
|
LL ~ {} // {}", "2", "3",
|
2021-03-21 09:29:21 -05:00
|
|
|
|
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:26:14
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
|
|
|
LL | "1", "2", "3",
|
|
|
|
| ^^^
|
|
|
|
|
|
2023-07-01 06:08:01 -05:00
|
|
|
help: try
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2023-04-20 10:19:36 -05:00
|
|
|
LL ~ 2 // {}",
|
2021-08-11 09:21:33 -05:00
|
|
|
LL ~ "1", "3",
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:26:19
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
|
|
|
LL | "1", "2", "3",
|
|
|
|
| ^^^
|
|
|
|
|
|
2023-07-01 06:08:01 -05:00
|
|
|
help: try
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
2023-04-20 10:19:36 -05:00
|
|
|
LL ~ {} // 3",
|
2021-08-11 09:21:33 -05:00
|
|
|
LL ~ "1", "2",
|
2021-03-25 13:29:11 -05:00
|
|
|
|
|
|
|
|
|
2022-08-30 07:20:49 -05:00
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:28:23
|
2022-08-30 07:20:49 -05:00
|
|
|
|
|
2023-04-20 10:19:36 -05:00
|
|
|
LL | writeln!(v, "{}", "//");
|
2022-08-30 07:20:49 -05:00
|
|
|
| ^^^^
|
|
|
|
|
|
2023-07-01 06:08:01 -05:00
|
|
|
help: try
|
2022-08-30 07:20:49 -05:00
|
|
|
|
|
2023-04-20 10:19:36 -05:00
|
|
|
LL - writeln!(v, "{}", "//");
|
|
|
|
LL + writeln!(v, "//");
|
2022-08-30 07:20:49 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:29:24
|
2022-08-30 07:20:49 -05:00
|
|
|
|
|
2023-04-20 10:19:36 -05:00
|
|
|
LL | writeln!(v, r"{}", "//");
|
2022-08-30 07:20:49 -05:00
|
|
|
| ^^^^
|
|
|
|
|
|
2023-07-01 06:08:01 -05:00
|
|
|
help: try
|
2022-08-30 07:20:49 -05:00
|
|
|
|
|
2023-04-20 10:19:36 -05:00
|
|
|
LL - writeln!(v, r"{}", "//");
|
2022-08-30 07:20:49 -05:00
|
|
|
LL + writeln!(v, r"/");
|
|
|
|
|
|
|
|
|
|
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:30:26
|
2022-08-30 07:20:49 -05:00
|
|
|
|
|
2023-04-20 10:19:36 -05:00
|
|
|
LL | writeln!(v, r#"{}"#, "//");
|
2022-08-30 07:20:49 -05:00
|
|
|
| ^^^^
|
|
|
|
|
|
2023-07-01 06:08:01 -05:00
|
|
|
help: try
|
2022-08-30 07:20:49 -05:00
|
|
|
|
|
2023-04-20 10:19:36 -05:00
|
|
|
LL - writeln!(v, r#"{}"#, "//");
|
2022-08-30 07:20:49 -05:00
|
|
|
LL + writeln!(v, r#"/"#);
|
|
|
|
|
|
|
|
|
|
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:31:23
|
2022-08-30 07:20:49 -05:00
|
|
|
|
|
|
|
|
LL | writeln!(v, "{}", r"/");
|
|
|
|
| ^^^^
|
|
|
|
|
|
2023-07-01 06:08:01 -05:00
|
|
|
help: try
|
2022-08-30 07:20:49 -05:00
|
|
|
|
|
|
|
|
LL - writeln!(v, "{}", r"/");
|
2023-04-20 10:19:36 -05:00
|
|
|
LL + writeln!(v, "//");
|
2022-08-30 07:20:49 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:32:23
|
2022-08-30 07:20:49 -05:00
|
|
|
|
|
|
|
|
LL | writeln!(v, "{}", "/r");
|
|
|
|
| ^^^^
|
|
|
|
|
|
2023-07-01 06:08:01 -05:00
|
|
|
help: try
|
2022-08-30 07:20:49 -05:00
|
|
|
|
|
|
|
|
LL - writeln!(v, "{}", "/r");
|
|
|
|
LL + writeln!(v, "/r");
|
|
|
|
|
|
|
|
|
|
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:33:28
|
2022-08-30 07:20:49 -05:00
|
|
|
|
|
|
|
|
LL | writeln!(v, r#"{}{}"#, '#', '"'); // hard mode
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: literal with an empty format string
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/write_literal_2.rs:33:33
|
2022-08-30 07:20:49 -05:00
|
|
|
|
|
|
|
|
LL | writeln!(v, r#"{}{}"#, '#', '"'); // hard mode
|
|
|
|
| ^^^
|
|
|
|
|
2023-06-08 06:55:47 -05:00
|
|
|
error: aborting due to 18 previous errors
|
2021-03-25 13:29:11 -05:00
|
|
|
|