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
110 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 }
2023-04-16 06:12:37 -05:00
//~^ ERROR pointers cannot
2018-10-05 03:17:16 -05:00
}
fn main() {}