v2 / vlib / v / checker / tests / const_define_in_function_err.out
6 lines · 6 sloc · 226 bytes · a741db43f388822bd078daa617d285ed6cf7766b
Raw
1vlib/v/checker/tests/const_define_in_function_err.vv:2:2: error: const can only be defined at the top level (outside of functions)
2 1 | fn main() {
3 2 | const a = 1
4 | ~~~~~
5 3 | println(a)
6 4 | }
7