aboutsummaryrefslogtreecommitdiff
path: root/test/cases/structs.1.zig
blob: 8d4250e4a2ac87a7271f06275f2bd951f211180c (plain)
1
2
3
4
5
6
7
8
9
10
const Example = struct { x: u8 };

pub fn main() u8 {
    var example: Example = .{ .x = 5 };
    example.x = 10;
    return example.x - 10;
}

// run
//