Should std::ops::Range be Copy?

Hey Guys,

Just been writing some code today, and surprised to find that std::ops::Range<Idx> is not Copy when Idx is Copy.

It would seem to make sense to me, considering it’s just a start and end point, for it to be Copy when it’s index type is also Copy.

Is there some reason this wasn’t made the case that I’m not seeing?

See https://github.com/rust-lang/rust/pull/27186

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.