Skip to content

Commit bed7b29

Browse files
Update compile-fail test
1 parent 287993c commit bed7b29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/compile-fail/consts/const-fn-error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ const fn f(x: usize) -> usize {
66
let mut sum = 0;
77
for i in 0..x {
88
//~^ ERROR mutable references
9+
//~| ERROR calls in constant functions
10+
//~| ERROR calls in constant functions
911
//~| ERROR E0080
1012
//~| ERROR E0744
1113
sum += i;

0 commit comments

Comments
 (0)