2 ms·
A `!` followed by an identifier does, yes. But a `!` also lets you define diverging functions: fn diverging() -> ! { unreachable!() } The two
by burntsushi 12y ago
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 http://doc.rust-lang.org/rust.html#diverging-functions