mirror of
https://git.proxmox.com/git/rustc
synced 2025-06-01 08:46:27 +00:00
13 lines
274 B
Rust
13 lines
274 B
Rust
fn main() {
|
|
let _ = [(); {
|
|
let mut x = &0;
|
|
let mut n = 0;
|
|
while n < 5 {
|
|
//~^ ERROR: constant evaluation is taking a long time
|
|
n = (n + 1) % 5;
|
|
x = &0; // Materialize a new AllocId
|
|
}
|
|
0
|
|
}];
|
|
}
|