mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 14:24:43 +00:00
13 lines
219 B
Zig
13 lines
219 B
Zig
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
|