Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A `!` followed by an identifier does, yes. But a `!` also lets you define diverging functions:

    fn diverging() -> ! {
        unreachable!()
    }
The two `!` in that code are completely orthogonal things. See the manual on diverging functions: http://doc.rust-lang.org/rust.html#diverging-functions


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: