]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-eval/issue-52475.rs
New upstream version 1.37.0+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / issue-52475.rs
CommitLineData
8faf50e0 1fn main() {
8faf50e0
XL
2 let _ = [(); {
3 //~^ WARNING Constant evaluating a complex constant, this might take some time
b7449926
XL
4 let mut x = &0;
5 let mut n = 0;
6 while n < 5 { //~ ERROR constant contains unimplemented expression type
a1dfa0c6 7 n = (n + 1) % 5; //~ ERROR evaluation of constant value failed
b7449926 8 x = &0; // Materialize a new AllocId
8faf50e0 9 }
b7449926 10 0
8faf50e0
XL
11 }];
12}