]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/min_const_fn/cmp_fn_pointers.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / consts / min_const_fn / cmp_fn_pointers.rs
CommitLineData
1b1a35ee 1const fn cmp(x: fn(), y: fn()) -> bool {
9fa01778 2 unsafe { x == y }
1b1a35ee 3 //~^ ERROR pointers cannot be reliably compared
0bf4aa26
XL
4}
5
6fn main() {}