mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
8 lines
234 B
Plaintext
8 lines
234 B
Plaintext
vlib/v/parser/tests/fn_decl_return_type_err_a.vv:3:13: error: cannot use `mut` on fn return type
|
|
1 | struct Foo{}
|
|
2 |
|
|
3 | fn maker() ?mut Foo {
|
|
| ~~~
|
|
4 | inner := &Foo{}
|
|
5 | return *inner
|