11error: this looks like a formatting argument but it is not part of a formatting macro
2- --> tests/ui/literal_string_with_formatting_arg.rs:7 :15
2+ --> tests/ui/literal_string_with_formatting_arg.rs:25 :15
33 |
44LL | x.expect("{y} {}");
55 | ^^^
@@ -8,61 +8,61 @@ LL | x.expect("{y} {}");
88 = help: to override `-D warnings` add `#[allow(clippy::literal_string_with_formatting_args)]`
99
1010error: this looks like a formatting argument but it is not part of a formatting macro
11- --> tests/ui/literal_string_with_formatting_arg.rs:8 :16
11+ --> tests/ui/literal_string_with_formatting_arg.rs:26 :16
1212 |
1313LL | x.expect(" {y} bla");
1414 | ^^^
1515
1616error: this looks like a formatting argument but it is not part of a formatting macro
17- --> tests/ui/literal_string_with_formatting_arg.rs:9 :15
17+ --> tests/ui/literal_string_with_formatting_arg.rs:27 :15
1818 |
1919LL | x.expect("{:?}");
2020 | ^^^^
2121
2222error: this looks like a formatting argument but it is not part of a formatting macro
23- --> tests/ui/literal_string_with_formatting_arg.rs:10 :15
23+ --> tests/ui/literal_string_with_formatting_arg.rs:28 :15
2424 |
2525LL | x.expect("{y:?}");
2626 | ^^^^^
2727
2828error: these look like formatting arguments but are not part of a formatting macro
29- --> tests/ui/literal_string_with_formatting_arg.rs:11 :16
29+ --> tests/ui/literal_string_with_formatting_arg.rs:29 :16
3030 |
3131LL | x.expect(" {y:?} {y:?} ");
3232 | ^^^^^ ^^^^^
3333
3434error: this looks like a formatting argument but it is not part of a formatting macro
35- --> tests/ui/literal_string_with_formatting_arg.rs:12 :23
35+ --> tests/ui/literal_string_with_formatting_arg.rs:30 :23
3636 |
3737LL | x.expect(" {y:..} {y:?} ");
3838 | ^^^^^
3939
4040error: these look like formatting arguments but are not part of a formatting macro
41- --> tests/ui/literal_string_with_formatting_arg.rs:13 :16
41+ --> tests/ui/literal_string_with_formatting_arg.rs:31 :16
4242 |
4343LL | x.expect(r"{y:?} {y:?} ");
4444 | ^^^^^ ^^^^^
4545
4646error: this looks like a formatting argument but it is not part of a formatting macro
47- --> tests/ui/literal_string_with_formatting_arg.rs:14 :16
47+ --> tests/ui/literal_string_with_formatting_arg.rs:32 :16
4848 |
4949LL | x.expect(r"{y:?} y:?}");
5050 | ^^^^^
5151
5252error: these look like formatting arguments but are not part of a formatting macro
53- --> tests/ui/literal_string_with_formatting_arg.rs:15 :19
53+ --> tests/ui/literal_string_with_formatting_arg.rs:33 :19
5454 |
5555LL | x.expect(r##" {y:?} {y:?} "##);
5656 | ^^^^^ ^^^^^
5757
5858error: this looks like a formatting argument but it is not part of a formatting macro
59- --> tests/ui/literal_string_with_formatting_arg.rs:17 :18
59+ --> tests/ui/literal_string_with_formatting_arg.rs:35 :18
6060 |
6161LL | x.expect("———{:?}");
6262 | ^^^^
6363
6464error: this looks like a formatting argument but it is not part of a formatting macro
65- --> tests/ui/literal_string_with_formatting_arg.rs:27 :19
65+ --> tests/ui/literal_string_with_formatting_arg.rs:45 :19
6666 |
6767LL | x.expect(r##" {x:?} "##); // `x` doesn't exist so we shoud not lint
6868 | ^^^^^
0 commit comments