aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/invalid_array_elem_ty.zig
blob: bfa79a104bfff6251900118e5d4159d02fcb4c13 (plain)
1
2
3
4
5
6
7
8
9
10
11
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