Sign in
android
/
toolchain
/
rustc
/
977026a81a6cc1c304420586c1bb6527b72b4303
/
.
/
src
/
test
/
ui
/
mir
/
validate
/
issue-95978-validator-lifetime-comparison.rs
blob: cd6c5bf271935a8b13b76fc8a992e44179f0da9e [
file
] [
log
] [
blame
]
// check-pass
// compile-flags: -Zvalidate-mir
fn
foo
(
_a
:
&
str
)
{}
fn
main
()
{
let
x
=
foo
as
fn
(&
'
static
str
);
let
_
=
x
==
foo
;
}