| 1 | vlib/v/checker/tests/modules/module_struct_noinit/main.v:12:9: error: struct `module_struct_noinit.mod.Foo` is declared with a `@[noinit]` attribute, so it cannot be initialized with `module_struct_noinit.mod.Foo{}` |
| 2 | 10 | |
| 3 | 11 | fn default_value[T]() T { |
| 4 | 12 | return T{} |
| 5 | | ~~~ |
| 6 | 13 | } |
| 7 | vlib/v/checker/tests/modules/module_struct_noinit/main.v:12:9: error: struct `module_struct_noinit.mod.Foo2[int]` is declared with a `@[noinit]` attribute, so it cannot be initialized with `module_struct_noinit.mod.Foo2[int]{}` |
| 8 | 10 | |
| 9 | 11 | fn default_value[T]() T { |
| 10 | 12 | return T{} |
| 11 | | ~~~ |
| 12 | 13 | } |
| 13 | |