pub fn occurs<T>(typ: &T, subs: &Substitution<T>, var: u32) -> bool
where T: Substitutable,