Closed
Description
Right now, if I have the following:
struct Foo(pub uint);
I cannot have a static instance of the struct like so:
static FOO: Foo = Foo(1);
I get the following error:
function calls in constants are limited to struct and enum constructors
Edit: This seems like a dup of #17169
Metadata
Metadata
Assignees
Labels
No labels