1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/checker/tests/auto_deref_assign_err.out

7 lines
287 B
Plaintext

vlib/v/checker/tests/auto_deref_assign_err.vv:10:6: error: cannot assign to `o`: expected `&int`, not `string`
8 | fn sub( mut o &int ) {
9 | println( 'in function got: ' + o.str() )
10 | o = "mutate int as string??"
| ~~~~~~~~~~~~~~~~~~~~~~~~
11 | }