summary refs log tree commit diff
path: root/src/test/pretty/record-trailing-comma.rs
blob: a60d72988e6e615db0fb5028f82b46f8341c6fb7 (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);
}