c2rust
c2rust copied to clipboard
transpile: Init list not implemented for Uint
int f() {
unsigned x = { 1 };
return x;
}
int g() {
int x = { 1 };
return x;
}
Translation of g succeeds. Translation of f fails, complaining "Init list not implemented for Uint", and f is omitted from the generated Rust code.
I think the fix to support any scalar type should be pretty trivial.