Introduce a way to construct Range from start + length
Rust Internals [Unofficial]
March 12, 2026
What trait bounds would be on T here for this from_len method? Because if there's a syntax sugar for it, Range doesn't have any constraints.
fn range_fun() {
let string_range = "a".."b";
let tuple_range = (0,)..(1,);
}
Discussion in the ATmosphere