|
| 1 | +error: these look like formatting arguments but are not part of a formatting macro |
| 2 | + --> tests/ui/literal_string_with_formatting_arg.rs:7:15 |
| 3 | + | |
| 4 | +LL | x.expect("{y} {}"); |
| 5 | + | ^^^^^^ |
| 6 | + | |
| 7 | + = note: `-D clippy::literal-string-with-formatting-arg` implied by `-D warnings` |
| 8 | + = help: to override `-D warnings` add `#[allow(clippy::literal_string_with_formatting_arg)]` |
| 9 | + |
| 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:15 |
| 12 | + | |
| 13 | +LL | x.expect("{:?}"); |
| 14 | + | ^^^^ |
| 15 | + |
| 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 |
| 18 | + | |
| 19 | +LL | x.expect("{y:?}"); |
| 20 | + | ^^^^^ |
| 21 | + |
| 22 | +error: these look like formatting arguments but are not part of a formatting macro |
| 23 | + --> tests/ui/literal_string_with_formatting_arg.rs:10:16 |
| 24 | + | |
| 25 | +LL | x.expect(" {y:?} {y:?} "); |
| 26 | + | ^^^^^ ^^^^^ |
| 27 | + |
| 28 | +error: this looks like a formatting argument but it is not part of a formatting macro |
| 29 | + --> tests/ui/literal_string_with_formatting_arg.rs:11:23 |
| 30 | + | |
| 31 | +LL | x.expect(" {y:..} {y:?} "); |
| 32 | + | ^^^^^ |
| 33 | + |
| 34 | +error: these look like formatting arguments but are not part of a formatting macro |
| 35 | + --> tests/ui/literal_string_with_formatting_arg.rs:12:16 |
| 36 | + | |
| 37 | +LL | x.expect(r"{y:?} {y:?} "); |
| 38 | + | ^^^^^ ^^^^^ |
| 39 | + |
| 40 | +error: this looks like a formatting argument but it is not part of a formatting macro |
| 41 | + --> tests/ui/literal_string_with_formatting_arg.rs:13:16 |
| 42 | + | |
| 43 | +LL | x.expect(r"{y:?} y:?}"); |
| 44 | + | ^^^^^ |
| 45 | + |
| 46 | +error: these look like formatting arguments but are not part of a formatting macro |
| 47 | + --> tests/ui/literal_string_with_formatting_arg.rs:14:19 |
| 48 | + | |
| 49 | +LL | x.expect(r##" {y:?} {y:?} "##); |
| 50 | + | ^^^^^ ^^^^^ |
| 51 | + |
| 52 | +error: this looks like a formatting argument but it is not part of a formatting macro |
| 53 | + --> tests/ui/literal_string_with_formatting_arg.rs:15:17 |
| 54 | + | |
| 55 | +LL | "\\.+*?()|[]{}^$#&-~".chars().any(|x| x == 'a'); |
| 56 | + | ^^ |
| 57 | + |
| 58 | +error: aborting due to 9 previous errors |
| 59 | + |
0 commit comments