mirror of
https://github.com/ziglang/zig.git
synced 2025-12-11 08:43:09 +00:00
11 lines
187 B
Zig
11 lines
187 B
Zig
const Foo = i32;
|
|
export fn foo(a: *i32) *Foo {
|
|
return @fieldParentPtr(Foo, "a", a);
|
|
}
|
|
|
|
// error
|
|
// backend=llvm
|
|
// target=native
|
|
//
|
|
// :3:28: error: expected struct type, found 'i32'
|