36
Announcing Rust 1.92.0 | Rust Blog
(blog.rust-lang.org)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
I don't understand why this never type was introduced at all. Instead functions not returning, shouldn't Rust enforce returning from function and instead use a
Nonein place of never type? Otherwise how will the "Unwinding" of program flow implemented?How do you enforce returning from
exitor a function with a loop that never terminates?If it never terminates, then it means it runs forever.
Right, so you can't "enforce" a return from the function.