We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91eda96 commit 2735221Copy full SHA for 2735221
src/test/ui/consts/const-fn-error.stderr
@@ -22,8 +22,8 @@ LL | for i in 0..x {
22
note: impl defined here, but it is not `const`
23
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
24
|
25
-LL | impl<I: Iterator> IntoIterator for I {
26
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL | impl<I: ~const Iterator> const IntoIterator for I {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
28
29
error[E0658]: mutable references are not allowed in constant functions
0 commit comments