Correctly handle string indices in literal_string_with_formatting_arg
This commit is contained in:
parent
968669b00a
commit
ad695da7d2
3 changed files with 14 additions and 1 deletions
|
|
@ -30,4 +30,8 @@ fn main() {
|
|||
}";
|
||||
// Unicode characters escape should not lint either.
|
||||
"\u{0052}".to_string();
|
||||
|
||||
// Regression test for <https://github.com/rust-lang/rust-clippy/issues/13838>.
|
||||
let x: Option<usize> = Some(0);
|
||||
x.expect("{…}");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue