aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/extra_comma_in_destructure.zig
blob: bc848c2ddbeb47aca4fc07222180bd154b2d2cd0 (plain)
1
2
3
4
5
6
7
8
9
10
export fn foo() void {
    const x, const y, = .{ 1, 2 };
    _ = .{ x, y };
}

// error
// backend=stage2
// target=native
//
// :2:23: error: expected expression or var decl, found '='