about summary refs log tree commit diff
path: root/tests/ui/consts/different-fn-ptr-binders-during-ctfe.rs
blob: b378542e5730c12e1a93ee318ca173a7a596907b (plain)
1
2
3
4
5
6
const fn cmp(x: fn(&'static ()), y: for<'a> fn(&'a ())) -> bool {
    x == y
    //~^ ERROR pointers cannot be reliably compared during const eval
}

fn main() {}