Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
coroutine
/
issue-64620-yield-array-element.rs
blob: a9307d306a617f5603fc8df8cb2f1a50ffdd59ff [
file
] [
log
] [
blame
]
// Regression test for #64620
#![
feature
(
coroutines
)]
pub
fn
crash
(
arr
:
[
usize
;
1
])
{
yield arr
[
0
];
//~ ERROR: yield expression outside of coroutine literal
}
fn
main
()
{}