rust/tests/ui/coroutine/issue-91477.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
139 B
Rust
Raw Normal View History

2023-10-19 16:46:28 -05:00
#![feature(coroutines)]
fn foo() -> impl Sized {
yield 1; //~ ERROR E0627
//~^ ERROR: `yield` can only be used in
}
fn main() {}