summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issue-68987-unmatch-issue-3.rs
blob: e98df8d7c3c4ee534f2865559c4cf72ea1b23eea (plain)
1
2
3
4
5
6
7
8
// the `{` is closed with `)`, there is a missing `(`
fn f(i: u32, j: u32) {
    let res = String::new();
    let mut cnt = i;
    while cnt < j {
        write!&mut res, " "); //~ ERROR mismatched closing delimiter
    }
} //~ ERROR unexpected closing delimiter