These are chat archives for
Sign in to start talking
a safe, concurrent, practical language
Jan 22 2017 11:53
is this a bug ?
Jan 22 2017 11:56
it doesn't seem so: you are returning values of different types from if/else branches, it's not possible.
Jan 22 2017 11:57
No it isnt:
In Rust, each function gets a unique type, the same way each closure has a unique type.
But you can convert function to a function pointer.
Jan 22 2017 12:31
ok thanks, I thought the conversion would be infered, it works without the tuple
and with explicit type