Gitiles
Code Review
Sign In
android-review.linaro.org
/
toolchain
/
rustc
/
951ae7a5eefab93734d1309f0497487f13f59fbf
/
.
/
tests
/
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
}
=>
(),
_
=>
(),
}
};
}