pub(crate) fn pat_has_ref(pat: &Pat) -> bool
True when a pattern binds by reference (ref x), which cannot be handed between scopes.
ref x