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