rustc/tests/ui/fmt/closing-brace-as-fill.rs
2025-01-11 15:57:26 +01:00

9 lines
242 B
Rust

// 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
}