$ errors.fyi/rust/E0317 74 namespaces · 3,092 codes
rust · rust/E0317
E0317

Missing else Branch

An if expression without an else block is used in a context that expects a non-() type. Because an if without else returns () on the non-taken branch, its result cannot be assigned to a variable of another type.

References

In this namespace

» community-maintained · contribute on GitHub npm i -g errors-fyi && errorfyi ENOENT