Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
consts
/
const-eval
/
issue-70804-fn-subtyping.rs
blob: abd1d32abe28904fa78350c91b133d828e9828c5 [
file
] [
log
] [
blame
]
// check-pass
const
fn
nested
(
x
:
(
for
<
'a> fn(&'
a
()),
String
))
->
(
fn
(&
'
static
()),
String
)
{
x
}
pub
const
TEST
:
(
fn
(&
'
static
()),
String
)
=
nested
((|
_x
|
(),
String
::
new
()));
fn
main
()
{}