Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
accessing_runtime_paramter_outside_function_scope.zig
pretty
plain
permalink
blame
history
•
10 lines
•
182 B
1
export fn entry(y: u8) void {
2
const Thing = struct {
3
y: u8 = y,
4
};
5
_ = Thing{ .y = 1 };
6
}
7
8
// error
9
//
10
// :3:17: error: 'y' not accessible outside function scope