Files
zig/test/cases/compile_errors/invalid_array_elem_ty.zig
2022-05-26 13:26:55 +03:00

12 lines
170 B
Zig

pub fn S() type {
return struct {};
}
pub export fn entry() void {
_ = [0]S;
}
// error
// backend=stage2,llvm
//
// :4:1: error: expected type, found fn() type