Sign in
rust
/
rust-lang
/
rust
/
refs/heads/stable
/
.
/
tests
/
ui
/
consts
/
const-eval
/
issue-70804-fn-subtyping.rs
blob: 8d96d247c199ad57bc628e2fd737007fc17fe163 [
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
()
{}