fn merge_alts<I, E: Error<I>>(a: Option<Located<I, E>>, b: Option<Located<I, E>>) -> Option<Located<I, E>> {
    match (a, b) {
        (Some(a), Some(b)) => Some(a.max(b)),
        (a, b) => a.or(b),
    }
}
// Merge two alternative errors
// TODO: Allow multiple alternative errors
Merge two alternative errors
TODO: Allow multiple alternative errors
Merge two alternative errors TODO : Allow multiple alternative errors
fn merge_alts<I, E: Error<I>>(a: Option<Located<I, E>>, b: Option<Located<I, E>>) -> Option<Located<I, E>> {
    match (a, b) {
        (Some(a), Some(b)) => Some(a.max(b)),
        (a, b) => a.or(b),
    }
}
fn merge_alts < I , E : Error < I > > ( a : Option < Located < I , E > > , b : Option < Located < I , E > > ) -> Option < Located < I , E > > { match ( a , b ) { ( Some ( a ) , Some ( b ) ) => Some ( a . max ( b ) ) , ( a , b ) => a . or ( b ) , } }
Merge two alternative errors
TODO: Allow multiple alternative errors
Merge two alternative errors TODO : Allow multiple alternative errors
a
Option<Located<I, E>>
b
Option<Located<I, E>>