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