rust/tests/ui/consts/min_const_fn/cmp_fn_pointers.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
108 B
Rust
Raw Normal View History

2020-09-29 20:32:38 -05:00
const fn cmp(x: fn(), y: fn()) -> bool {
unsafe { x == y }
2022-07-25 03:17:00 -05:00
//~^ ERROR can't compare
2018-10-05 03:17:16 -05:00
}
fn main() {}