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