1 error[E0658]: `for` is not allowed in a `const fn`
2 --> $DIR/const-fn-error.rs:5:5
13 = note: see issue #87575 <https://github.com/rust-lang/rust/issues/87575> for more information
14 = help: add `#![feature(const_for)]` to the crate attributes to enable
16 error[E0015]: cannot convert `std::ops::Range<usize>` into an iterator in constant functions
17 --> $DIR/const-fn-error.rs:5:14
22 note: impl defined here, but it is not `const`
23 --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
25 LL | impl<I: Iterator> IntoIterator for I {
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
29 error[E0658]: mutable references are not allowed in constant functions
30 --> $DIR/const-fn-error.rs:5:14
35 = note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
36 = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
38 error[E0015]: cannot call non-const fn `<std::ops::Range<usize> as Iterator>::next` in constant functions
39 --> $DIR/const-fn-error.rs:5:14
44 = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
46 error: aborting due to 4 previous errors
48 Some errors have detailed explanations: E0015, E0658.
49 For more information about an error, try `rustc --explain E0015`.