See more details in dotnet/docs#5208 There are couple important points here: - For types (like `Span<T>`) that are `ref struct` types, the `ref` modifier is missing. - When a method signature returns a `ref T`, the `ref T` modifier is missing.