Can't wait for the never type to be stable :D
post
replies:
use core::convert::Infallible;
fn can_never_fail() -> Result<(), Infallible> {
Judging by recently discovered use of unwrap this might be a trap for some ;D
Can't wait for the never type to be stable :D
use core::convert::Infallible;
fn can_never_fail() -> Result<(), Infallible> {
Judging by recently discovered use of unwrap this might be a trap for some ;D
all 15 comments