Update const-fn-error.stderr
This commit is contained in:
parent
91eda96e38
commit
27352211e7
1 changed files with 2 additions and 2 deletions
|
|
@ -22,8 +22,8 @@ LL | for i in 0..x {
|
|||
note: impl defined here, but it is not `const`
|
||||
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
||||
|
|
||||
LL | impl<I: Iterator> IntoIterator for I {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | impl<I: ~const Iterator> const IntoIterator for I {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
|
||||
|
||||
error[E0658]: mutable references are not allowed in constant functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue