Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
generator
/
static-reference-across-yield.rs
blob: 23b11593bb5d6444354972faea766d580765247f [
file
] [
log
] [
blame
]
// build-pass
#![
feature
(
generators
)]
static
A
:
[
i32
;
5
]
=
[
1
,
2
,
3
,
4
,
5
];
fn
main
()
{
static
||
{
let
u
=
A
[{
yield
;
1
}];
};
static
||
{
match
A
{
i
if
{
yield
;
true
}
=>
(),
_
=>
(),
}
};
}