Files
rust/tests/ui/consts/const-eval/issue-52475.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
254 B
Rust
Raw Normal View History

2018-08-18 14:48:14 +02:00
fn main() {
let _ = [(); {
let mut x = &0;
let mut n = 0;
while n < 5 {
2018-09-07 10:53:31 +02:00
n = (n + 1) % 5; //~ ERROR evaluation of constant value failed
2018-08-18 14:48:14 +02:00
x = &0; // Materialize a new AllocId
}
0
}];
}