]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const-eval/issue-52442.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / issue-52442.rs
1 fn main() {
2 [(); { &loop { break } as *const _ as usize } ];
3 //~^ ERROR `loop` is not allowed in a `const`
4 //~| ERROR casting pointers to integers in constants is unstable
5 //~| ERROR evaluation of constant value failed
6 }