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 18:32:38 -07:00
const fn cmp(x: fn(), y: fn()) -> bool {
unsafe { x == y }
2022-07-25 08:17:00 +00:00
//~^ ERROR can't compare
2018-10-05 10:17:16 +02:00
}
fn main() {}