blob: 8a57d08c3ba166886fa0936c8af7e7419668a680 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
const Foo = extern struct {
a: i32,
};
export fn foo(a: i32) *Foo {
return @fieldParentPtr(Foo, "a", a);
}
// error
// backend=stage2
// target=native
//
// :5:38: error: expected pointer type, found 'i32'
|