ref struct SpanWrapper { public Span<int> IntSpan; // This is NOT permitted unless we remove the 'scoped' modifier-- newSpan is only safe-to-escape inside current method public void SetIntSpan(scoped Span<int> newSpan) => IntSpan = newSpan; }