From ad695da7d2c1d9c01f08a5be84ccff02df70eb68 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 16 Dec 2024 16:55:09 +0100 Subject: Correctly handle string indices in `literal_string_with_formatting_arg` --- tests/ui/literal_string_with_formatting_arg.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/ui/literal_string_with_formatting_arg.rs b/tests/ui/literal_string_with_formatting_arg.rs index 20bd243aa30..f257c66f59d 100644 --- a/tests/ui/literal_string_with_formatting_arg.rs +++ b/tests/ui/literal_string_with_formatting_arg.rs @@ -30,4 +30,8 @@ fn main() { }"; // Unicode characters escape should not lint either. "\u{0052}".to_string(); + + // Regression test for . + let x: Option = Some(0); + x.expect("{…}"); } -- cgit 1.4.1-3-g733a5