Files
zig/test/cases/compile_errors/invalid_array_elem_ty.zig
2022-06-30 09:57:38 +02:00

13 lines
191 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 'type', found 'fn() type'