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

// error
//
// :4:14: error: cannot test a local constant
// :2:11: note: local constant declared here