v2 / vlib / v / checker / tests / array_plus_assign_err.out
8 lines · 8 sloc · 514 bytes · 0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1vlib/v/checker/tests/array_plus_assign_err.vv:1:5: warning: unused variable: `buffer`
2 1 | mut buffer := []u8{cap: 1024}
3 | ~~~~~~
4 2 | buffer += 'ipconfig && sudo apt install -y some_amazing_package name + command output'.bytes()
5vlib/v/checker/tests/array_plus_assign_err.vv:2:1: error: operator `+=` not defined on left operand type `[]u8`
6 1 | mut buffer := []u8{cap: 1024}
7 2 | buffer += 'ipconfig && sudo apt install -y some_amazing_package name + command output'.bytes()
8 | ~~~~~~
9