Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
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
}
=>
(),
_
=>
(),
}
};
}