Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
invalid_decltest.zig
pretty
plain
permalink
blame
history
•
11 lines
•
188 B
1
export fn foo() void {
2
const a = 1;
3
_ = struct {
4
test a {}
5
};
6
}
7
8
// error
9
//
10
// :4:14: error: cannot test a local constant
11
// :2:11: note: local constant declared here