Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
vxx2
/
vlib
/
v
/
checker
/
tests
/
negative_assign_to_unsigned.out
7
lines
·
7
sloc
·
241 bytes
·
0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1
vlib/v/checker/tests/negative_assign_to_unsigned.vv:3:6: error: cannot assign negative value to unsigned integer type
2
1 | fn main() {
3
2 | mut u := u32(10)
4
3 | u = -10
5
| ~~~
6
4 | eprintln(u)
7
5 | }
8