]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-eval/issue-52475.rs
Auto merge of #81132 - bugadani:map-prealloc, r=matthewjasper
[rust.git] / src / test / ui / consts / const-eval / issue-52475.rs
index 869f0b981af7d881e4dce06fc6f4cd9fe531b727..ce65407bbab0b5d928795c8b4fdc82297aac8625 100644 (file)
@@ -3,7 +3,6 @@ fn main() {
         let mut x = &0;
         let mut n = 0;
         while n < 5 {
-        //~^ ERROR `while` is not allowed in a `const`
             n = (n + 1) % 5; //~ ERROR evaluation of constant value failed
             x = &0; // Materialize a new AllocId
         }