aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/checker/tests/slice_reassignment.out
blob: 7ab478fa4cfe8f288c4a1d938bd5ef8df185bd23 (plain)
1
2
3
4
5
6
7
vlib/v/checker/tests/slice_reassignment.vv:3:5: error: cannot reassign using range expression on the left side of an assignment
    1 | fn main() {
    2 |     mut arr := [1, 2, 3, 4, 5]
    3 |     arr[..2] = [0, 0]
      |        ~~~~~
    4 |     println(arr)
    5 | }