Files
zig/test/cases/compile_errors/invalid_array_elem_ty.zig
Andrew Kelley 8caa206417 test-cases: fix race with zig run on C backend tests
Also avoid redundantly doing compile-error checks on multiple targets
for test cases where that is not helpful.
2022-06-14 15:27:43 -07:00

13 lines
182 B
Zig

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