fn is_indexed_slice(ty: &Ty) -> bool
Expand description
Is ty
of the form &m (&m ... (&m T))
where T
is an exi-indexed slice?
We need to do a “transitive” check to deal with cases like &mut &mut [i32]
which arise from closures like that in tests/tests/pos/surface/closure03.rs
.