v/vlib/v/parser/tests/fn_decl_return_type_err_b.vv

10 lines
86 B
V

struct Foo{}
fn maker() (mut Foo) {
inner := &Foo{}
return *inner
}
fn main() {
}