Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
generator
/
live-upvar-across-yield.rs
blob: a1064165b2f7ac535156218d78126128304ccb43 [
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
();
}