| 1 | vlib/v/checker/tests/slice_clone_in_struct_init_notice.vv:9:7: notice: an implicit clone of the slice was done here |
| 2 | 7 | |
| 3 | 8 | _ := AA{ |
| 4 | 9 | a: a[0..5] |
| 5 | | ~~~~~~ |
| 6 | 10 | } |
| 7 | 11 | _ := a[0..5] |
| 8 | Details: vlib/v/checker/tests/slice_clone_in_struct_init_notice.vv:9:7: details: To silence this notice, use either an explicit `a[..].clone()`, |
| 9 | or use an explicit `unsafe{ a[..] }`, if you do not want a copy of the slice. |
| 10 | 7 | |
| 11 | 8 | _ := AA{ |
| 12 | 9 | a: a[0..5] |
| 13 | | ~~~~~~ |
| 14 | 10 | } |
| 15 | 11 | _ := a[0..5] |
| 16 | |