summary refs log tree commit diff
path: root/src/test/ui/consts/const-eval/issue-52442.rs
blob: d820c7051612456a128f108dfcdc0aeaa26b00eb (plain)
1
2
3
4
5
6
fn main() {
    [();  { &loop { break } as *const _ as usize } ];
    //~^ ERROR casting pointers to integers in constants is unstable
    //~| ERROR `loop` is not allowed in a `const`
    //~| ERROR evaluation of constant value failed
}