about summary refs log tree commit diff
path: root/tests/pretty/hir-struct-expr.rs
blob: 9580f5d557d3290ef697871d0603c01850287a4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//@ pretty-compare-only
//@ pretty-mode:hir
//@ pp-exact:hir-struct-expr.pp

struct StructWithSomeFields {
    field_1: i32,
    field_2: i32,
    field_3: i32,
    field_4: i32,
    field_5: i32,
    field_6: i32,
}

fn main() {
    let a = StructWithSomeFields {
        field_1: 1,
        field_2: 2,
        field_3: 3,
        field_4: 4,
        field_5: 5,
        field_6: 6,
    };
    let a = StructWithSomeFields { field_1: 1, field_2: 2, ..a };
}