From bed7b295106c88a2a6cf922ace1483a48183675d Mon Sep 17 00:00:00 2001 From: Dylan MacKenzie Date: Tue, 29 Sep 2020 19:45:06 -0700 Subject: Update `compile-fail` test --- src/test/compile-fail/consts/const-fn-error.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/test/compile-fail/consts/const-fn-error.rs b/src/test/compile-fail/consts/const-fn-error.rs index 64474878603..68a4d414ff3 100644 --- a/src/test/compile-fail/consts/const-fn-error.rs +++ b/src/test/compile-fail/consts/const-fn-error.rs @@ -6,6 +6,8 @@ const fn f(x: usize) -> usize { let mut sum = 0; for i in 0..x { //~^ ERROR mutable references + //~| ERROR calls in constant functions + //~| ERROR calls in constant functions //~| ERROR E0080 //~| ERROR E0744 sum += i; -- cgit 1.4.1-3-g733a5