Should std::ops::Range be Copy?


#1

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?


#2

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