Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
binop
/
binary-op-on-fn-ptr-eq.rs
blob: 47b79f3855f6098e8970571ba3682f6c5e923612 [
file
] [
log
] [
blame
]
//@ run-pass
// Tests equality between supertype and subtype of a function
// See the issue #91636
#![
allow
(
unpredictable_function_pointer_comparisons
)]
fn
foo
(
_a
:
&
str
)
{}
fn
main
()
{
let
x
=
foo
as
fn
(&
'
static
str
);
let
_
=
x
==
foo
;
}