Skip to main content

expect_return

Macro expect_return 

Source
macro_rules! expect_return {
    ($expr: expr => ($msg: literal, $code: literal)) => { ... };
}
Available on crate feature result only.
Expand description

Generates a match block which returns an exist status code on error.

This is to be used when some cleanup code below must be called before exit is called.