bail

Macro bail 

Source
macro_rules! bail {
    ($formatted_msg:expr, $plain_msg:expr, $not_yet_parsed:expr $(,)?) => { ... };
}
Expand description

Immediately return with an error. The second argument requests the slice of input after this error, so we can deduce where it happened.