Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
fieldParentPtr-field_pointer_is_not_pointer.zig
pretty
plain
permalink
blame
history
•
10 lines
•
181 B
1
const Foo = extern struct {
2
a: i32,
3
};
4
export fn foo(a: i32) *const Foo {
5
return @fieldParentPtr("a", a);
6
}
7
8
// error
9
//
10
// :5:33: error: expected pointer type, found 'i32'