aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/export_generic_function.zig
blob: 65469be6d94213437660c465a5d93f47fccd397a (plain)
1
2
3
4
5
6
7
8
9
10
export fn foo(num: anytype) i32 {
    _ = num;
    return 0;
}

// error
// backend=stage2
// target=native
//
// :1:20: error: generic parameters not allowed in function with calling convention 'C'