Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
v2
/
vlib
/
v
/
checker
/
tests
/
auto_deref_assign_err.out
6
lines
·
6
sloc
·
283 bytes
·
0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1
vlib/v/checker/tests/auto_deref_assign_err.vv:10:6: error: cannot assign to `o`: expected `&int`, not `string`
2
8 | fn sub(mut o &int) {
3
9 | println('in function got: ' + o.str())
4
10 | o = 'mutate int as string??'
5
| ~~~~~~~~~~~~~~~~~~~~~~~~
6
11 | }
7