diff options
Diffstat (limited to 'tests/ui/fmt/closing-brace-as-fill.rs')
-rw-r--r-- | tests/ui/fmt/closing-brace-as-fill.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/fmt/closing-brace-as-fill.rs b/tests/ui/fmt/closing-brace-as-fill.rs new file mode 100644 index 000000000..6ad257f94 --- /dev/null +++ b/tests/ui/fmt/closing-brace-as-fill.rs @@ -0,0 +1,8 @@ +// issue: 112732 + +// `}` is typoed since it is interpreted as a fill character rather than a closing bracket + +fn main() { + println!("Hello, world! {0:}<3", 2); + //~^ ERROR invalid format string: expected `'}'` but string was terminated +} |