Sign in
android
/
toolchain
/
rustc
/
951ae7a5eefab93734d1309f0497487f13f59fbf
/
.
/
tests
/
ui
/
generator
/
live-upvar-across-yield.rs
blob: 6a2e42a5573a8486814f17145a15599fc805cb2c [
file
] [
log
] [
blame
]
// run-pass
#![
feature
(
generators
,
generator_trait
)]
use
std
::
ops
::
Generator
;
use
std
::
pin
::
Pin
;
fn
main
()
{
let
b
=
|
_
|
3
;
let
mut
a
=
||
{
b
(
yield
);
};
Pin
::
new
(&
mut
a
).
resume
(());
}