2018-08-18 07:48:14 -05:00
|
|
|
fn main() {
|
|
|
|
let _ = [(); {
|
|
|
|
let mut x = &0;
|
|
|
|
let mut n = 0;
|
2022-11-02 06:57:40 -05:00
|
|
|
while n < 5 {
|
|
|
|
//~^ ERROR: constant evaluation is taking a long time
|
2023-01-03 23:04:03 -06:00
|
|
|
n = (n + 1) % 5;
|
2018-08-18 07:48:14 -05:00
|
|
|
x = &0; // Materialize a new AllocId
|
|
|
|
}
|
|
|
|
0
|
|
|
|
}];
|
|
|
|
}
|