about summary refs log tree commit diff
diff options
context:
space:
mode:
authormbartlett21 <mjmouse9999@gmail.com>2022-03-15 06:08:25 +0000
committermbartlett21 <mjmouse9999@gmail.com>2022-03-15 06:08:25 +0000
commit27352211e7c353c3b2f2e5796b112482175572e3 (patch)
treef02cb7877a775dd16ca53450cd61de890fc2dca7
parent91eda96e38a6244d82e3a9dad65b19048e2462df (diff)
downloadrust-27352211e7c353c3b2f2e5796b112482175572e3.tar.gz
rust-27352211e7c353c3b2f2e5796b112482175572e3.zip
Update const-fn-error.stderr
-rw-r--r--src/test/ui/consts/const-fn-error.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/consts/const-fn-error.stderr b/src/test/ui/consts/const-fn-error.stderr
index 4d53cfc35e1..e36324f0b3e 100644
--- a/src/test/ui/consts/const-fn-error.stderr
+++ b/src/test/ui/consts/const-fn-error.stderr
@@ -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