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

// error
//
// :2:18: error: cannot dereference non-pointer type 'comptime_int'