1 error[E0015]: cannot convert `std::ops::Range<i32>` into an iterator in constants
2 --> $DIR/const-for.rs:5:14
7 note: impl defined here, but it is not `const`
8 --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
10 LL | impl<I: Iterator> IntoIterator for I {
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = note: calls in constants are limited to constant functions, tuple structs and tuple variants
14 error[E0015]: cannot call non-const fn `<std::ops::Range<i32> as Iterator>::next` in constants
15 --> $DIR/const-for.rs:5:14
20 = note: calls in constants are limited to constant functions, tuple structs and tuple variants
22 error: aborting due to 2 previous errors
24 For more information about this error, try `rustc --explain E0015`.