Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
test
/
ui
/
consts
/
min_const_fn
/
cmp_fn_pointers.rs
blob: 638ff1d8b9c1c6da948d0adb3479047fee9ee202 [
file
] [
log
] [
blame
]
const
fn
cmp
(
x
:
fn
(),
y
:
fn
())
->
bool
{
//~^ ERROR function pointer
//~| ERROR function pointer
unsafe
{
x
==
y
}
//~^ ERROR pointers cannot be reliably compared
}
fn
main
()
{}