blob: b42249e57fa9a25ab5ff2a6349cc291eb7a1b400 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
fn main() {
let _ = [(); {
//~^ WARNING Constant evaluating a complex constant, this might take some time
let mut x = &0;
let mut n = 0;
while n < 5 {
//~^ ERROR constant contains unimplemented expression type
//~| ERROR constant contains unimplemented expression type
n = (n + 1) % 5; //~ ERROR evaluation of constant value failed
x = &0; // Materialize a new AllocId
}
0
}];
}
|