Function rustc::middle::typeck::infer::common_supertypeExperimental
[-]
[+]
[src]
pub fn common_supertype(cx: &InferCtxt, origin: TypeOrigin, a_is_expected: bool, a: t, b: t) -> t
Computes the least upper-bound of a and b. If this is
not possible, reports an error and returns ty::err.