rust/tests/ui/issue-3145.rs
Sasha 246f1f8a8e Improve recovery on malformed format call
If a comma in a format call is replaced with a similar token, then we
emit an error and continue parsing, instead of stopping at this point.
2020-09-02 13:18:19 +02:00

4 lines
69 B
Rust

fn main() {
println!("{}" a); //~ERROR expected `,`, found `a`
}