// check-pass// rust-lang/rust#55810: types for a binding in a match arm can be// inferred from arms that come later in the match.structS;implS{fnmethod(&self)-> bool{unimplemented!()}}fnget<T>()-> T{unimplemented!()}fnmain(){matchget(){xifx.method()=>{}&S=>{}}}