zig/doc/langref/enum_export_error.zig

4 lines
176 B
Zig

const Foo = enum { a, b, c };
export fn entry(foo: Foo) void { _ = foo; }
// obj=parameter of type 'enum_export_error.Foo' not allowed in function with calling convention 'C'