rust/tests/ui/consts/min_const_fn/cmp_fn_pointers.rs
2023-04-16 11:38:52 +00:00

7 lines
110 B
Rust

const fn cmp(x: fn(), y: fn()) -> bool {
unsafe { x == y }
//~^ ERROR pointers cannot
}
fn main() {}