diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-09-29 19:45:06 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-09-29 19:45:06 -0700 |
| commit | bed7b295106c88a2a6cf922ace1483a48183675d (patch) | |
| tree | 991ee7721393681eb51da3d3f73b70a5ff9970ee /src | |
| parent | 287993c9619c95ccde422032448125b8477e2f6d (diff) | |
Update `compile-fail` test
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/compile-fail/consts/const-fn-error.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
