Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
coroutine
/
static-reference-across-yield.rs
blob: 6496d8b86cc536edc240c698400c3a2a92640c6f [
file
] [
log
] [
blame
]
// build-pass
#![
feature
(
coroutines
)]
static
A
:
[
i32
;
5
]
=
[
1
,
2
,
3
,
4
,
5
];
fn
main
()
{
static
||
{
let
u
=
A
[{
yield
;
1
}];
};
static
||
{
match
A
{
i
if
{
yield
;
true
}
=>
(),
_
=>
(),
}
};
}