Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
v2
/
vlib
/
v
/
checker
/
tests
/
option_mut_non_mut_err.out
7
lines
·
7
sloc
·
288 bytes
·
11bcd40b4a53650d947d5987cc2574b4354be031
Raw
1
vlib/v/checker/tests/option_mut_non_mut_err.vv:3:9: error: `option_1` is immutable, declare it with `mut` to make it mutable
2
1 | fn main() {
3
2 | option_1 := ?int(10)
4
3 | if mut option_1 != none {
5
| ~~~~~~~~
6
4 | option_1 = 11
7
5 | }
8