about summary refs log tree commit diff
path: root/tests/ui/consts/const-fn-error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/const-fn-error.rs')
-rw-r--r--tests/ui/consts/const-fn-error.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/ui/consts/const-fn-error.rs b/tests/ui/consts/const-fn-error.rs
index 42061ef0670..b7151782423 100644
--- a/tests/ui/consts/const-fn-error.rs
+++ b/tests/ui/consts/const-fn-error.rs
@@ -3,9 +3,8 @@ const X : usize = 2;
 const fn f(x: usize) -> usize {
     let mut sum = 0;
     for i in 0..x {
-        //~^ ERROR cannot convert
-        //~| ERROR `for` is not allowed in a `const fn`
-        //~| ERROR cannot call non-const fn
+        //~^ ERROR cannot use `for`
+        //~| ERROR cannot use `for`
         sum += i;
     }
     sum