summary refs log tree commit diff
path: root/src/test/pretty/record-trailing-comma.rs
blob: d603c1d8e57bd4c3ecd0cb9b261cb34419f53d0c (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 with sth};
    assert sth.x + sth2.y == 9;
}