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