summary refs log tree commit diff
path: root/src/test/pretty/record-trailing-comma.rs
blob: a1dd636491ac86bdae259c9a071fd10fb882792a (plain)
1
2
3
4
5
6
7
8
// pp-exact
type thing = {x: int, y: int,};

fn main() {
    let sth = {x: 0, y: 1,};
    let sth2 = {y: 9, ..sth};
    assert sth.x + sth2.y == 9;
}