rust/tests/ui/write_literal_2.stderr
Centri3 8cb6c86996 change category and refactor
Update raw_strings.rs

Revert "new lints for visibility"

This reverts commit 0e5a537d209727169769dc19cf86aef27122c092.

new lints for visibility
2023-06-27 05:16:40 -05:00

199 lines
4.1 KiB
Plaintext

error: unnecessary raw string literal
--> $DIR/write_literal_2.rs:10:24
|
LL | writeln!(v, r"{}", r"{hello}");
| ^^^^^^^^^^ help: try: `"{hello}"`
|
= note: `-D clippy::needless-raw-strings` implied by `-D warnings`
error: literal with an empty format string
--> $DIR/write_literal_2.rs:9:23
|
LL | writeln!(v, "{}", "{hello}");
| ^^^^^^^^^
|
= note: `-D clippy::write-literal` implied by `-D warnings`
help: try this
|
LL - writeln!(v, "{}", "{hello}");
LL + writeln!(v, "{{hello}}");
|
error: literal with an empty format string
--> $DIR/write_literal_2.rs:10:24
|
LL | writeln!(v, r"{}", r"{hello}");
| ^^^^^^^^^^
|
help: try this
|
LL - writeln!(v, r"{}", r"{hello}");
LL + writeln!(v, r"{{hello}}");
|
error: literal with an empty format string
--> $DIR/write_literal_2.rs:11:23
|
LL | writeln!(v, "{}", '/'');
| ^^^^
|
help: try this
|
LL - writeln!(v, "{}", '/'');
LL + writeln!(v, "'");
|
error: literal with an empty format string
--> $DIR/write_literal_2.rs:12:23
|
LL | writeln!(v, "{}", '"');
| ^^^
|
help: try this
|
LL - writeln!(v, "{}", '"');
LL + writeln!(v, "/"");
|
error: literal with an empty format string
--> $DIR/write_literal_2.rs:13:24
|
LL | writeln!(v, r"{}", '"');
| ^^^
error: literal with an empty format string
--> $DIR/write_literal_2.rs:14:24
|
LL | writeln!(v, r"{}", '/'');
| ^^^^
|
help: try this
|
LL - writeln!(v, r"{}", '/'');
LL + writeln!(v, r"'");
|
error: literal with an empty format string
--> $DIR/write_literal_2.rs:18:9
|
LL | / "hello /
LL | | world!"
| |_______________^
|
help: try this
|
LL ~ "some hello /
LL ~ world!"
|
error: literal with an empty format string
--> $DIR/write_literal_2.rs:25:9
|
LL | "1", "2", "3",
| ^^^
|
help: try this
|
LL ~ "some 1/
LL ~ {} // {}", "2", "3",
|
error: literal with an empty format string
--> $DIR/write_literal_2.rs:25:14
|
LL | "1", "2", "3",
| ^^^
|
help: try this
|
LL ~ 2 // {}",
LL ~ "1", "3",
|
error: literal with an empty format string
--> $DIR/write_literal_2.rs:25:19
|
LL | "1", "2", "3",
| ^^^
|
help: try this
|
LL ~ {} // 3",
LL ~ "1", "2",
|
error: literal with an empty format string
--> $DIR/write_literal_2.rs:27:23
|
LL | writeln!(v, "{}", "//");
| ^^^^
|
help: try this
|
LL - writeln!(v, "{}", "//");
LL + writeln!(v, "//");
|
error: literal with an empty format string
--> $DIR/write_literal_2.rs:28:24
|
LL | writeln!(v, r"{}", "//");
| ^^^^
|
help: try this
|
LL - writeln!(v, r"{}", "//");
LL + writeln!(v, r"/");
|
error: literal with an empty format string
--> $DIR/write_literal_2.rs:29:26
|
LL | writeln!(v, r#"{}"#, "//");
| ^^^^
|
help: try this
|
LL - writeln!(v, r#"{}"#, "//");
LL + writeln!(v, r#"/"#);
|
error: literal with an empty format string
--> $DIR/write_literal_2.rs:30:23
|
LL | writeln!(v, "{}", r"/");
| ^^^^
|
help: try this
|
LL - writeln!(v, "{}", r"/");
LL + writeln!(v, "//");
|
error: literal with an empty format string
--> $DIR/write_literal_2.rs:31:23
|
LL | writeln!(v, "{}", "/r");
| ^^^^
|
help: try this
|
LL - writeln!(v, "{}", "/r");
LL + writeln!(v, "/r");
|
error: literal with an empty format string
--> $DIR/write_literal_2.rs:32:28
|
LL | writeln!(v, r#"{}{}"#, '#', '"'); // hard mode
| ^^^
error: literal with an empty format string
--> $DIR/write_literal_2.rs:32:33
|
LL | writeln!(v, r#"{}{}"#, '#', '"'); // hard mode
| ^^^
error: aborting due to 18 previous errors