]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/min_const_fn/cmp_fn_pointers.rs
Tweak move error
[rust.git] / src / test / ui / consts / min_const_fn / cmp_fn_pointers.rs
1 const fn cmp(x: fn(), y: fn()) -> bool {
2     //~^ ERROR function pointer
3     //~| ERROR function pointer
4     unsafe { x == y }
5     //~^ ERROR pointers cannot be reliably compared
6 }
7
8 fn main() {}