aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/take_slice_of_invalid_dereference.zig
blob: 35c1b2de0da4822b4ac2111251aab21cdf4bd256 (plain)
1
2
3
4
5
6
7
8
9
10
export fn entry() void {
    const x = 'a'.*[0..];
    _ = x;
}

// error
// backend=stage2
// target=native
//
// :2:18: error: cannot dereference non-pointer type 'comptime_int'