mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
aef0f4024a
And suggest adding the `#[coroutine]` to the closure
9 lines
139 B
Rust
9 lines
139 B
Rust
#![feature(coroutines)]
|
|
|
|
fn foo() -> impl Sized {
|
|
yield 1; //~ ERROR E0627
|
|
//~^ ERROR: `yield` can only be used in
|
|
}
|
|
|
|
fn main() {}
|