aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/invalid_decltest.zig
blob: cde984f36603482d460307fb8178863477e629c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
export fn foo() void {
    const a = 1;
    struct {
        test a {}
    };
}

// error
// backend=stage2
// target=native
//
// :4:14: error: cannot test a local constant
// :2:11: note: local constant declared here