Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
nll
/
promoted-closure-pair.rs
blob: cc9f17fd4e6bc0ae60fb6eff90f6136997cc3422 [
file
] [
log
] [
blame
]
// Check that we handle multiple closures in the same promoted constant.
fn
foo
()
->
&
'
static
i32
{
let
z
=
0
;
let
p
=
&(|
y
|
y
,
|
y
|
y
);
p
.
0
(&
z
);
p
.
1
(&
z
)
//~ ERROR cannot return
}
fn
main
()
{}