]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/min_const_fn/cmp_fn_pointers.rs
Rollup merge of #94605 - Michcioperz:patch-1, r=pnkfelix
[rust.git] / src / test / ui / consts / min_const_fn / cmp_fn_pointers.rs
1 const fn cmp(x: fn(), y: fn()) -> bool {
2     unsafe { x == y }
3     //~^ ERROR pointers cannot be reliably compared
4 }
5
6 fn main() {}