77 lines
2.7 KiB
Text
77 lines
2.7 KiB
Text
error: this looks like a formatting argument but it is not part of a formatting macro
|
|
--> tests/ui/literal_string_with_formatting_arg.rs:25:15
|
|
|
|
|
LL | x.expect("{y} {}");
|
|
| ^^^
|
|
|
|
|
= note: `-D clippy::literal-string-with-formatting-args` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::literal_string_with_formatting_args)]`
|
|
|
|
error: this looks like a formatting argument but it is not part of a formatting macro
|
|
--> tests/ui/literal_string_with_formatting_arg.rs:26:16
|
|
|
|
|
LL | x.expect(" {y} bla");
|
|
| ^^^
|
|
|
|
error: this looks like a formatting argument but it is not part of a formatting macro
|
|
--> tests/ui/literal_string_with_formatting_arg.rs:27:15
|
|
|
|
|
LL | x.expect("{:?}");
|
|
| ^^^^
|
|
|
|
error: this looks like a formatting argument but it is not part of a formatting macro
|
|
--> tests/ui/literal_string_with_formatting_arg.rs:28:15
|
|
|
|
|
LL | x.expect("{y:?}");
|
|
| ^^^^^
|
|
|
|
error: these look like formatting arguments but are not part of a formatting macro
|
|
--> tests/ui/literal_string_with_formatting_arg.rs:29:16
|
|
|
|
|
LL | x.expect(" {y:?} {y:?} ");
|
|
| ^^^^^ ^^^^^
|
|
|
|
error: this looks like a formatting argument but it is not part of a formatting macro
|
|
--> tests/ui/literal_string_with_formatting_arg.rs:30:23
|
|
|
|
|
LL | x.expect(" {y:..} {y:?} ");
|
|
| ^^^^^
|
|
|
|
error: these look like formatting arguments but are not part of a formatting macro
|
|
--> tests/ui/literal_string_with_formatting_arg.rs:31:16
|
|
|
|
|
LL | x.expect(r"{y:?} {y:?} ");
|
|
| ^^^^^ ^^^^^
|
|
|
|
error: this looks like a formatting argument but it is not part of a formatting macro
|
|
--> tests/ui/literal_string_with_formatting_arg.rs:32:16
|
|
|
|
|
LL | x.expect(r"{y:?} y:?}");
|
|
| ^^^^^
|
|
|
|
error: these look like formatting arguments but are not part of a formatting macro
|
|
--> tests/ui/literal_string_with_formatting_arg.rs:33:19
|
|
|
|
|
LL | x.expect(r##" {y:?} {y:?} "##);
|
|
| ^^^^^ ^^^^^
|
|
|
|
error: this looks like a formatting argument but it is not part of a formatting macro
|
|
--> tests/ui/literal_string_with_formatting_arg.rs:34:14
|
|
|
|
|
LL | assert!("{y}".is_ascii());
|
|
| ^^^
|
|
|
|
error: this looks like a formatting argument but it is not part of a formatting macro
|
|
--> tests/ui/literal_string_with_formatting_arg.rs:36:18
|
|
|
|
|
LL | x.expect("———{:?}");
|
|
| ^^^^
|
|
|
|
error: this looks like a formatting argument but it is not part of a formatting macro
|
|
--> tests/ui/literal_string_with_formatting_arg.rs:46:19
|
|
|
|
|
LL | x.expect(r##" {x:?} "##); // `x` doesn't exist so we shoud not lint
|
|
| ^^^^^
|
|
|
|
error: aborting due to 12 previous errors
|
|
|