Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
generator
/
issue-64620-yield-array-element.rs
blob: 2cbe8f5161465b11258f799d2c4e7c89de2365d3 [
file
] [
log
] [
blame
]
// Regression test for #64620
#![
feature
(
generators
)]
pub
fn
crash
(
arr
:
[
usize
;
1
])
{
yield arr
[
0
];
//~ ERROR: yield expression outside of generator literal
}
fn
main
()
{}