Files
zig/test/cases/compile_errors/invalid_array_elem_ty.zig
2022-07-07 10:50:06 +03:00

13 lines
192 B
Zig

pub fn S() type {
return struct {};
}
pub export fn entry() void {
_ = [0]S;
}
// error
// target=native
// backend=stage2
//
// :5:12: error: expected type 'type', found 'fn() type'