aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/fieldParentPtr-non_pointer.zig
blob: 5bb71daf13e654abae6e358f08d7ad78069ba391 (plain)
1
2
3
4
5
6
7
8
const Foo = i32;
export fn foo(a: *i32) Foo {
    return @fieldParentPtr("a", a);
}

// error
//
// :3:12: error: expected pointer type, found 'i32'