We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
compile-fail
1 parent 287993c commit bed7b29Copy full SHA for bed7b29
src/test/compile-fail/consts/const-fn-error.rs
@@ -6,6 +6,8 @@ const fn f(x: usize) -> usize {
6
let mut sum = 0;
7
for i in 0..x {
8
//~^ ERROR mutable references
9
+ //~| ERROR calls in constant functions
10
11
//~| ERROR E0080
12
//~| ERROR E0744
13
sum += i;
0 commit comments