aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/invalid_array_elem_ty.zig
blob: 7f37ea4063d6717dbd1bab8146a777846215e052 (plain)
1
2
3
4
5
6
7
8
9
10
pub fn S() type {
    return struct {};
}
pub export fn entry() void {
    _ = [0]S;
}

// error
//
// :5:12: error: expected type 'type', found 'fn () type'