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

// error
// backend=llvm
// target=native
//
// :3:12: error: expected pointer type, found 'i32'