]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/issue-52475.rs
Rollup merge of #72369 - Lucretiel:socketaddr-parse, r=dtolnay
[rust.git] / src / test / ui / consts / const-eval / issue-52475.rs
1 fn main() {
2     let _ = [(); {
3         let mut x = &0;
4         let mut n = 0;
5         while n < 5 {
6             n = (n + 1) % 5; //~ ERROR evaluation of constant value failed
7             x = &0; // Materialize a new AllocId
8         }
9         0
10     }];
11 }