1
1
error: 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
3
3
|
4
4
LL | x.expect("{y} {}");
5
5
| ^^^
@@ -8,61 +8,61 @@ LL | x.expect("{y} {}");
8
8
= help: to override `-D warnings` add `#[allow(clippy::literal_string_with_formatting_args)]`
9
9
10
10
error: 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
12
12
|
13
13
LL | x.expect(" {y} bla");
14
14
| ^^^
15
15
16
16
error: 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
18
18
|
19
19
LL | x.expect("{:?}");
20
20
| ^^^^
21
21
22
22
error: 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
24
24
|
25
25
LL | x.expect("{y:?}");
26
26
| ^^^^^
27
27
28
28
error: 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
30
30
|
31
31
LL | x.expect(" {y:?} {y:?} ");
32
32
| ^^^^^ ^^^^^
33
33
34
34
error: 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
36
36
|
37
37
LL | x.expect(" {y:..} {y:?} ");
38
38
| ^^^^^
39
39
40
40
error: 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
42
42
|
43
43
LL | x.expect(r"{y:?} {y:?} ");
44
44
| ^^^^^ ^^^^^
45
45
46
46
error: 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
48
48
|
49
49
LL | x.expect(r"{y:?} y:?}");
50
50
| ^^^^^
51
51
52
52
error: 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
54
54
|
55
55
LL | x.expect(r##" {y:?} {y:?} "##);
56
56
| ^^^^^ ^^^^^
57
57
58
58
error: 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
60
60
|
61
61
LL | x.expect("———{:?}");
62
62
| ^^^^
63
63
64
64
error: 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
66
66
|
67
67
LL | x.expect(r##" {x:?} "##); // `x` doesn't exist so we shoud not lint
68
68
| ^^^^^
0 commit comments